rsrv: unglobalize IOC_sock

This commit is contained in:
Michael Davidsaver
2016-01-11 20:59:07 -05:00
parent bb67c9db2f
commit 5f31d9d2b1
2 changed files with 2 additions and 6 deletions
+2 -5
View File
@@ -65,7 +65,7 @@ static void req_server (void *pParm)
struct sockaddr_in serverAddr; /* server's address */
osiSocklen_t addrSize = (osiSocklen_t) sizeof(struct sockaddr_in);
int status;
SOCKET clientSock;
SOCKET IOC_sock;
epicsThreadId tid;
int portChange;
@@ -102,10 +102,6 @@ static void req_server (void *pParm)
memcpy ( &serverAddr, &pNode->addr.ia, addrSize );
if (IOC_sock != 0 && IOC_sock != INVALID_SOCKET) {
epicsSocketDestroy ( IOC_sock );
}
/*
* Open the socket. Use ARPA Internet address format and stream
* sockets. Format described in <sys/socket.h>.
@@ -196,6 +192,7 @@ static void req_server (void *pParm)
epicsEventSignal(castcp_startStopEvent);
while (TRUE) {
SOCKET clientSock;
struct sockaddr sockAddr;
osiSocklen_t addLen = sizeof(sockAddr);
-1
View File
@@ -164,7 +164,6 @@ enum ctl {ctlInit, ctlRun, ctlPause, ctlExit};
#endif
GLBLTYPE int CASDEBUG;
GLBLTYPE SOCKET IOC_sock;
GLBLTYPE unsigned short ca_server_port;
GLBLTYPE ELLLIST clientQ; /* (TCP clients) locked by clientQlock */
GLBLTYPE ELLLIST clientQudp; /* locked by clientQlock */