Development code for Sockets provider

- This is an incremental devel code for Sockets provider.

This would be more efficient as separate functions, possibly using a function pointer to invoke the correct call.