Next: chparents

Prev: binary_dump

bind

bind(port, receiver)
This function instructs the server to begin listening on the port numbered port, with the receiver object receiver. If the server is already listening on that port, then the receiver object is changed, with no other effect. If the socket cannot be created, then bind() throws a ~socket error. If the server cannot bind to the port port, then bind() throws a ~bind error. Otherwise, bind() returns 1.