use posix sockets

This commit is contained in:
Jeff Hill
2003-03-20 20:00:22 +00:00
parent 0f5ab03eb0
commit 5fd1b028dd
9 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ void casStreamIO::forceDisconnect ()
{
if ( ! this->sockHasBeenClosed ) {
this->sockHasBeenClosed = true;
int status = ::shutdown ( this->sock, SD_BOTH );
int status = ::shutdown ( this->sock, SHUT_RDWR );
if ( status ) {
errlogPrintf ("CAC TCP socket shutdown error was %s\n",
SOCKERRSTR (SOCKERRNO) );