SysSockBind

This function of type BOOL calls the function bind of the operating system. This function will allocate a local address to the socket which was assigned before just to an address range by SysSockCreate.

Usually the “binding” will be done before functions like SysSockListen or SysSockAccept are called for a socket.

In case of successful operation the function will return TRUE, otherwise FALSE.

Variable Data type Description
diSocket DINT

Descriptor of the socket, returned by SysSockCreate

(corresponding parameter e.g. in Win32: s)

pSockAddr DWORD Pointer on a varialbe of type SOCKADDR; (see SysSockAccept)
diSockAddrSize DINT Lenght of the structure SOCKADDR (can be retrieved with the aid of the SIZEOF operator)