improved bind failure messages

This commit is contained in:
Jeff Hill
2000-05-25 22:31:56 +00:00
parent 44c872ca3e
commit 3dd26027d6
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ();
}

View File

@@ -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 ();
}