SysSockSelect (FUN) ¶ FUNCTION SysSockSelect : DINT This routine permits a task to pend until one of a set of sockets handles becomes ready. Three parameters – fdRead, fdWrite and fdExcept – point to file descriptor sets in which each array entry corresponds to a particular socket handle. If a socket handle is not ready, it will be written in the array to -1 (SOCKET_INVALID). With the timeout value, a timeout for the operation can be specified. diWidth is the size of the fd_array array in SOCKETFD_SET. The function returns the operating system result. <0: Error 0: Timeout expired >0: Typically number of sockets that are successully selected InOut: Scope Name Type Comment Return SysSockSelect DINT Input diWidth DINT Typically SOCKET_FD_SETSIZE fdRead DWORD Address of SOCKET_FD_SET fdWrite DWORD Address of SOCKET_FD_SET fdExcept DWORD Address of SOCKET_FD_SET ptvTimeout DWORD Address of SOCKET_TIMEVAL
MonoPoly_Invert (FUN) ¶ FUNCTION MonoPoly_Invert : BOOL Inverts the MonoPoly function, i.e. returns x such that mp(x) = v. If v is not in the co-domain of mp, FALSE is returned. InOut: Scope Name Type Inout Const mp MonoPoly Input v LREAL Return MonoPoly_Invert BOOL Output x LREAL
SysSockSetIPAddress (FUN) ¶ FUNCTION SysSockSetIPAddress : BOOL InOut: Scope Name Type Return SysSockSetIPAddress BOOL Inout Const stCardName STRING stIPAddress STRING
SysSockSetOption (FUN) ¶ FUNCTION SysSockSetOption : BOOL InOut: Scope Name Type Comment Return SysSockSetOption BOOL Input diSocket DINT diLevel DINT diOption DINT pOptionValue DWORD Address of option diOptionLength DINT Length of option
SysSockShutdown (FUN) ¶ FUNCTION SysSockShutdown : BOOL InOut: Scope Name Type Return SysSockShutdown BOOL Input diSocket DINT diHow DINT
TCP specific ¶ SysSockRecv (Function) SysSockSend (Function)
SysSockRecv (FUN) ¶ FUNCTION SysSockRecv : DINT InOut: Scope Name Type Comment Return SysSockRecv DINT Input diSocket DINT pbyBuffer DWORD Address of buffer to receive diBufferSize DINT diFlags DINT
SysSockSend (FUN) ¶ FUNCTION SysSockSend : DINT InOut: Scope Name Type Comment Return SysSockSend DINT Input diSocket DINT pbyBuffer DWORD Address of buffer to receive diBufferSize DINT diFlags DINT
MonoPoly_LenRange (FUN) ¶ FUNCTION MonoPoly_LenRange : BOOL Returns the admissible range of length (domains) for a mono-poly with the given parameters. Returns FALSE if (and only if) that range is empty. InOut: Scope Name Type Comment Return MonoPoly_LenRange BOOL Input deltaf LREAL The delta f f0_x LREAL The first derivative at x=0 f1_x LREAL The first derivative at x=l Output l_min LREAL The minimum possible length. l_max LREAL The maximum possible length.
UDP specific ¶ SysSockRecvFrom (Function) SysSockSendTo (Function)