$sockname is the name given to a connection to identify it. This identifier can be used in events to know which connection an event is related to.