On Tue, Sep 05, 2006 at 11:58:39AM +0300, Erez D wrote:

> i did listen on both sides,
> 
> if i use send, or write (from the server) i get :
>  write: Transport endpoint is not connected
> if i use sendto, i get:
>   sendto: Cannot assign requested address

If you want to use send() or write(), you first need to use connect() on
the socket, and specify the other side's address and port.  Since this
is on a datagram socket, the connect() just sets an association to the
other side in the kernel, and doesn't cause any packets to be sent.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to