Socket objects

The Socket Object is used to allow communication with TCP servers and UDP sockets. It supports various functionalities such as configurable timeouts, DNSA database used by TCP/IP networks that enables the translation of hostnames into IP numbers and to provide other domain related information. lookups and also reverse DNS lookups. The Socket object handles also various data types in its sending and receiving operation. It can handle both strings and also raw binary data. Strings are handled by using normal string variables and binary data is handled by using arrays of bytes. The receive function (called recv) also accepts a parameter that instructs it as to which data type to return. This allows the user to specify if he wants his data to be received as string or as binary.

This section contains information about the following Socket objects: