/*
{"description" : "Bind a TCP 'server' or 'master' socket. A TCPSocket can be used to accept new connections from server sockets."}
*/
interface TCPServerSocket{
/* {"@description" : "Bind to any and all IP addresses of the host."} */
const char ANY_ADDRESS[] = "ANY"
/* {"@description" : "Bind to any and all IPv4 addresses of the host."} */
const char ANY_ADDRESS_v4[] = "ANY_v4"
/* {"@description" : "Bind to any and all IPv6 addresses of the host."} */
const char ANY_ADDRESS_v6[] = "ANY_v6"
/* {"@description" : "Bind a TCP 'server' or 'master' socket to a given IP address and port number. The optional parameter reuseAddress defaults to false, but if set to true the system will immediately re-use the given address and port number after a recent unbind (rather than being forced to wait e.g. for a TIME_WAIT period)."} */
bool bind(char address[], int port, opt bool reuseAddress)
/* {"@description" : "Unbind this socket (allowing other sockets to bind to this address/port)."} */
void unbind()
}
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n net.TCPServerSocket -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation