Il 14/03/2012 08:14, Orit Wasserman ha scritto: > if (bind(*fd, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) > { > closesocket(*fd); > return -socket_error(); > } > return 0; > > and than you will not need ret
But closesocket could clobber socket_error(), no? Paolo