→ Socket
Creates a new Socket object.
Creates a TCP/IP connection, or establishes a TCP/IP server.
| Name | Type | Access | Description |
|---|---|---|---|
| Boolean | readonly | When true, the connection is active. | |
| String | read/write | Sets or retrieves the name of the encoding used to transmit data. | |
| Boolean | readonly | When true, the receive buffer is empty. | |
| String | read/write | A message describing the most recent error. Setting this value clears any error message. | |
| String | readonly | The name of the remote computer when a connection is established. | |
| Number = 10 | read/write | The timeout in seconds to be applied to read or write operations. |
Creates a new Socket object.
Terminates the open connection.
Instructs the object to start listening for an incoming connection.
Opens the connection for subsequent read/write operations.
Checks a listening object for a new incoming connection.
Reads up to the specified number of characters from the connection. CR characters are ignored unless the encoding is set to "BINARY".
Reads one line of text up to the next line feed.
Concatenates all arguments into a single string and writes that string to the connection.
Concatenates all arguments into a single string, appends a LF character, and writes that string to the connection.
Methods that return a Socket.