Defensive programming. 
Added Listen, Bind on server.
Virtualized BaseSocket's functions