SET.SOCKET.MODE()

Top  Previous  Next

 

The SET.SOCKET.MODE() function sets parameters for an open socket.

 

 

Format

 

SET.SOCKET.MODE(skt, key, value)

 

where

 

sktis the socket variable for an open socket.

 

keyidentifies the mode to be set:
SKT$INFO.BLOCKINGDefault blocking mode.
SKT$INFO.NO.DELAYNagle algorithm disabled?
SKT$INFO.KEEP.ALIVESend keep alives?

 

valueis the required value of the parameter.

 

 

The SET.SOCKET.MODE() function returns TRUE (1) if the action is successful, FALSE (0) if it fails. The STATUS() function can be used to determine the cause of failure.

 

 

See also:

ACCEPT.SOCKET.CONNECTION, CLOSE.SOCKET, CREATE.SERVER.SOCKET(), OPEN.SOCKET(), READ.SOCKET(), SERVER.ADDR(), SOCKET.INFO(), WRITE.SOCKET()