Fleshed out "binding to socket" example