use socklen_t for linux

This commit is contained in:
Jeff Hill
2001-05-22 02:10:51 +00:00
parent 0b40765719
commit 7f88505a9a

View File

@@ -404,7 +404,7 @@ tcpiiu::tcpiiu ( cac &cac, double connectionTimeout,
{
int nBytes;
int sizeOfParameter = static_cast < int > ( sizeof ( nBytes ) );
socklen_t sizeOfParameter = static_cast < int > ( sizeof ( nBytes ) );
status = getsockopt ( this->sock, SOL_SOCKET, SO_SNDBUF,
( char * ) &nBytes, &sizeOfParameter );
if ( status < 0 || nBytes < 0 ||