Unix Programming - recv:transport endpoint not connected

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2004 > recv:transport endpoint not connected





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author recv:transport endpoint not connected
abhishec

2004-03-23, 5:35 pm

hi

i am trying to send and recv between 3 processes using udp.

three processes are three passes thr same loop in which i send first and
then receive

but send runs and recv gets transport endpoint not connected error

like i try to recv msgs sent in processes 2 and 3 in process 1 but as they
are diff processes this should work

i dont know why i get this error can anyone enlighten

Andrei Voropaev

2004-03-24, 3:35 am

On 2004-03-23, abhishec <abhishec@nunki.usc.edu> wrote:
> hi
>
> i am trying to send and recv between 3 processes using udp.
>
> three processes are three passes thr same loop in which i send first and
> then receive
>
> but send runs and recv gets transport endpoint not connected error
>
> like i try to recv msgs sent in processes 2 and 3 in process 1 but as they
> are diff processes this should work
>
> i dont know why i get this error can anyone enlighten


Only guesses. Did you open socket as SOCK_DGRAM? Do you use 'recvfrom'
function? If you use 'recv', did you 'connect' your udp socket? Read man
udp, maybe this will help you.

Andrei

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com