Development code for Sockets provider

- This is an incremental devel code for Sockets provider.

You can just return strncpy and avoid a second call to strerror