Proper socket support
Currently bind()
will start listening for incoming connections. This is what listen()
is supposed to do. bind()
should only set the local address for the socket. It should be possible to use bind()
+ connect()
to connect to a remote server from a specific ip address + port rather than whichever the netstack decides. This is important for some UDP protocols.
UDP sockets should allow changing the remote server by calling connect()
again.