Documentation for method accept assembled from the following pages:

Class: IO::Socket::INET §

From IO::Socket::INET

(IO::Socket::INET) method accept §

method accept()

In listen/server mode, waits for a new incoming connection. Once a new connection is established, an IO::Socket::INET instance (or a subclass instance) for consuming the connection is returned.