Updated so that client socket can be distinguished. Added callback
function to API when creating and registering server socket