eliminate the UDP send thread

This commit is contained in:
Jeff Hill
2000-06-16 23:35:02 +00:00
parent 5f4e31c600
commit 2e67127f25
6 changed files with 168 additions and 244 deletions

View File

@@ -534,15 +534,18 @@ void cac::beaconNotify ( const inetAddrID &addr )
int status;
status = getsockname ( this->pudpiiu->sock, (struct sockaddr *) &saddr,
&saddr_length);
assert ( status >= 0 );
&saddr_length );
if ( status < 0 ) {
epicsPrintf ( "CAC: getsockname () error was \"%s\"\n", SOCKERRSTR (SOCKERRNO) );
return;
}
port = ntohs ( saddr.sin_port );
}
{
ca_real delay;
delay = (port&CA_RECAST_PORT_MASK);
delay = ( port & CA_RECAST_PORT_MASK );
delay /= MSEC_PER_SEC;
delay += CA_RECAST_DELAY;