Initial code for bind/listen/accept