Function Summary |
int |
BindPort(optional int, optional bool)
// BindPort: Binds a free port or optional port specified in argument one.
|
bool |
Close()
// Close: Closes the current connection.
|
bool |
IsConnected()
// IsConnected: Returns true if connected.
|
bool |
Listen()
// Listen: Listen for connections. Can handle up to 5 simultaneous connections.
// Returns false if failed to place socket in listen mode.
|
bool |
Open(IpAddr Addr)
// Open: Open a connection to a foreign host.
|
int |
ReadText(out string)
// ReadText: Reads text string.
// Returns number of bytes read.
|
int |
SendText(string Str)
// SendText: Sends text string.
// Appends a cr/lf if LinkMode=MODE_Line. Returns number of bytes sent.
|