improved bind failure messages
This commit is contained in:
1 parent
44c872ca3e
commit
3dd26027d6
2 files changed
+2
-2
No files matched your search
@@ -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: Bind error\n");
|
||||
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: cast bind error\n");
|
||||
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