Next: System_network_wrapper_TcpSocket, Up: System_network
System.network.socket
This package contains basic support for network sockets.
Supported constructors:
System.network.socket(domain, type, protocol)
domain
of type type
, with protocol
protocol
.
Supported constants:
SOCK_DGRAM
SOCK_STREAM
SOCK_SEQPACKET
AF_UNIX
AF_UNSPEC
AF_INET
Supported methods:
accept()
bind(host, port)
close()
connect(host, port)
listen(backlog)
backlog
maximum pending
connections.
read(bytes)
bytes
bytes from the socket.
write(bytes)
bytes
to the socket.