Bidirectional communication over unix socket (named pipe)

Donn Cave donn at u.washington.edu
Wed Mar 8 12:29:42 EST 2006


In article <1141836504.118212.173060 at z34g2000cwc.googlegroups.com>,
 "J Rice" <rice.jeffrey at gmail.com> wrote:

> The problem I have is that the client can send to the server, but the
> server can't send back to the client because it gets this error:
> 
> socket.error: (107, 'Transport endpoint is not connected')
> 
> This is despite the client waiting on a socket.recv() statement.  Is
> the client really not connected, or is the server unaware of the
> connection?  And how do I fix this?

You can either connect() as well as bind(), or use
sendto(data, file)

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list