libs/nameserver/src/nameServCalls.cxx
// XXX: these have strange return codes: 1 is success.  Should invert, or
// possibly convert to exceptions.
these have strange return codes: 1 is success.  Should invert, or
possibly convert to exceptions.
these have strange return codes : 1 is success . Should invert or possibly convert to exceptions .
int SendCommand(int socket, unsigned char cmd)
{
    int res = send(socket, (char *)&cmd, 1, 0);
    if(res <= 0) {
	closesocket(socket);
	return 0;
    }
    return 1;
}
int SendCommand ( int socket , unsigned char cmd ) { int res = send ( socket , ( char * ) & cmd , 1 , 0 ) ; if ( res <= 0 ) { closesocket ( socket ) ; return 0 ; } return 1 ; }
XXX: these have strange return codes: 1 is success.
XXX : these have strange return codes : 1 is success .