deps/PicklingTools170Release/M2k/udpif/udpsockets.cc
int_4 UDPSocketLib::UDP_unblockSocket (int_4 sd)
{
  SOCKERR_DECLARE(UDP_unblockSocket);
  int             status;
  int             blockFlag (NONBLOCK);

  // may need to timeout protect all loops like this...
  //do {
  status = socket_ioctl(sd, FIONBIO, (char *) &blockFlag);
  //} while ((-1 == status) && (EINTR == socket_errno));

  if (status < 0) {
    SOCKERR_RECORD("ioctl(FIONBIO)");
  }
  SOCKERR_RETURN(status);
}
/* UDP_unblockSocket

Description:
  Given a socket descriptor, configures it so that it will either 
  NOT block when it reads or writes.

Arguments:
  sd	    (IN)	-- the socket descriptor

Returns:
  -1		if error was encountered
   0		if all went well

*/
UDP_unblockSocket
Description:
Given a socket descriptor, configures it so that it will either
NOT block when it reads or writes.

sd        (IN)        -- the socket descriptor

1            if error was encountered
0            if all went well
UDP_unblockSocket Description : Given a socket descriptor configures it so that it will either NOT block when it reads or writes . sd ( IN ) -- the socket descriptor 1 if error was encountered 0 if all went well
int_4 UDPSocketLib::UDP_unblockSocket (int_4 sd)
{
  SOCKERR_DECLARE(UDP_unblockSocket);
  int             status;
  int             blockFlag (NONBLOCK);
  status = socket_ioctl(sd, FIONBIO, (char *) &blockFlag);
  if (status < 0) {
    SOCKERR_RECORD("ioctl(FIONBIO)");
  }
  SOCKERR_RETURN(status);
}
int_4 UDPSocketLib :: UDP_unblockSocket ( int_4 sd ) { SOCKERR_DECLARE ( UDP_unblockSocket ) ; int status ; int blockFlag ( NONBLOCK ) ; status = socket_ioctl ( sd , FIONBIO , ( char * ) & blockFlag ) ; if ( status < 0 ) { SOCKERR_RECORD ( " " ) ; } SOCKERR_RETURN ( status ) ; }
UDP_unblockSocket
Description:
Given a socket descriptor, configures it so that it will either
NOT block when it reads or writes.
UDP_unblockSocket Description : Given a socket descriptor configures it so that it will either NOT block when it reads or writes .
// may need to timeout protect all loops like this... //do { //} while ((-1 == status) && (EINTR == socket_errno));