SOCK (Socket Numbers) Library

Top  Previous  Next

The SOCK library automates socket number assignment. The sock. object supports up to sock.numofsock sockets. Using the SOCK library, your code can get an unused socket, use the socket as needed, then release the socket into a pool of free sockets.

 

Library Info

Supported platforms:

Any platform with the sock. object.

Files to include:

Sock.tbs, sock.tbh (from current_library_set\sock\trunk\).

Dependencies:

---

API procedures:

Use API procedures to interact with the library.

sock_get() — returns a free socket number or 255 if no free sockets left.

sock_who_uses() — returns the signature of the specified socket's user.

sock_release() — releases the socket (number), discards socket connection, restores socket's properties to their default states.

Event procedures:

---

Callback procedures:

---

Required buffer space:

---