removed port number export

This commit is contained in:
Jeff Hill
2000-11-20 18:05:56 +00:00
parent a0cfe60c1e
commit 06bfcd795d

View File

@@ -67,7 +67,7 @@ casIntfIO::casIntfIO (const caNetAddr &addrIn) :
if (status<0) {
if (SOCKERRNO == SOCK_EADDRINUSE) {
//
// force assignment of a default port
// enable assignment of a default port
// (so the getsockname() call below will
// work correctly)
//
@@ -113,10 +113,11 @@ casIntfIO::casIntfIO (const caNetAddr &addrIn) :
if ( portChange ) {
errlogPrintf ( "cas warning: Configured TCP port was unavailable.\n");
errlogPrintf ( "cas warning: Using dynamically assigned port %hu\n",
errlogPrintf ( "cas warning: Using dynamically assigned TCP port %hu,\n",
ntohs (this->addr.sin_port) );
errlogPrintf ( "cas warning: Depending on your IP kernel\n" );
errlogPrintf ( "cas warning: this server may not be reachable with unicast\n" );
errlogPrintf ( "cas warning: but now two or more severs share the same UDP port.\n");
errlogPrintf ( "cas warning: Depending on your IP kernel this server may not be\n" );
errlogPrintf ( "cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)\n" );
}
status = listen(this->sock, caServerConnectPendQueueSize);
@@ -217,12 +218,3 @@ void casIntfIO::show(unsigned level) const
}
}
//
// casIntfIO::portNumber()
//
unsigned casIntfIO::portNumber() const
{
return ntohs(this->addr.sin_port);
}