Create function zsock_sendmem

Helper method to ease sending a chunk of memory with a zsock.