(sock4) tcp.info(sock4 socket);

Returns a table containing information about the socket.