Allow clients to get remote endpoint per message for TCP connections

This pull request exposes the file descriptor for TCP sockets from remote endpoints, thus allowing clients to retrieve the endpoints address via getpeername per message.