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

View File

@@ -636,7 +636,7 @@ void tcpiiu::shutdown ( epicsGuard <cacMutex > & guard )
// linux threads in recv() dont wakeup unless we also
// call shutdown ( close() by itself is not enough )
if ( oldState == iiucs_connected ) {
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) );