libmn_socket: initial version