removed unused code

This commit is contained in:
Jeff Hill
2001-08-13 20:30:35 +00:00
parent b3f2c87697
commit 48ea56d295
2 changed files with 1 additions and 51 deletions

View File

@@ -129,28 +129,4 @@ epicsShareFunc int epicsShareAPI hostToIPAddr
return ret;
}
/*
* typically the shutdown() function will wake up threads blocking in TCP recv()
* and this is a more graceful way to shutdown
*/
epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock )
{
int status;
status = shutdown ( sock, SD_BOTH );
if ( status ) {
errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n",
SOCKERRSTR (SOCKERRNO) );
status = socket_close ( sock );
if ( status ) {
errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n",
SOCKERRSTR (SOCKERRNO) );
return ossrSocketNoChange;
}
else {
return ossrSocketClosed;
}
}
else {
return ossrSocketShutdown;
}
}

View File

@@ -87,29 +87,3 @@ epicsShareFunc int epicsShareAPI hostToIPAddr
return 0;
}
/*
* typically the shutdown() function will wake up threads blocking in TCP recv()
* and this is a more graceful way to shutdown
*/
epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock )
{
int status;
status = shutdown ( sock, SD_BOTH );
if ( status ) {
errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n",
SOCKERRSTR (SOCKERRNO) );
status = socket_close ( sock );
if ( status ) {
errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n",
SOCKERRSTR (SOCKERRNO) );
return ossrSocketNoChange;
}
else {
return ossrSocketClosed;
}
}
else {
return ossrSocketShutdown;
}
}