Socket operations
Creating socket
s = socket(domain, type, protocol)
Binding socket
- sockets are created without a name
- sockets are bound by association
- association
<protocol, local address, local port, remote address, remote port>
- bind specifies association
<local address, local port>
bind(s, address, addrlen)