Re: UDP socket disconnect problem

2010-10-27 Thread Marius NĂ¼nnerich
On Tue, Sep 28, 2010 at 11:58, dave jones wrote: > Hello, > > In Linux, I can disconnect the socket using: > sa.sin_family = AF_UNSPEC; > val = connect(sockfd, (struct sockaddr *)&sa, sizeof(sa)); > > the return value of val is 0; on freebsd, the return value of connect() is -1. > According to Lin

UDP socket disconnect problem

2010-09-28 Thread dave jones
Hello, In Linux, I can disconnect the socket using: sa.sin_family = AF_UNSPEC; val = connect(sockfd, (struct sockaddr *)&sa, sizeof(sa)); the return value of val is 0; on freebsd, the return value of connect() is -1. According to Linux's connect(2) man page: Connectionless sockets may dissolve t