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
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