improved bind failure messages
This commit is contained in:
@@ -294,7 +294,7 @@ LOCAL int req_server (void)
|
||||
|
||||
/* get server's Internet address */
|
||||
if (bind(IOC_sock, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) {
|
||||
errlogPrintf ( "CAS: TCP server port bind error was %s\n", SOCKERRSTR ( SOCKERRNO ) );
|
||||
errlogPrintf ( "CAS: TCP server port bind error was \"%s\"\n", SOCKERRSTR ( SOCKERRNO ) );
|
||||
socket_close (IOC_sock);
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ int cast_server(void)
|
||||
|
||||
/* get server's Internet address */
|
||||
if( bind(IOC_cast_sock, (struct sockaddr *)&sin, sizeof (sin)) < 0){
|
||||
epicsPrintf ("CAS: UDP server port bind error was %s\n", SOCKERRSTR ( SOCKERRNO ) );
|
||||
epicsPrintf ("CAS: UDP server port bind error was \"%s\"\n", SOCKERRSTR ( SOCKERRNO ) );
|
||||
socket_close (IOC_cast_sock);
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user