Adding documentation to socket and udp socket