A reference to the IOManagerActor that performs the actual IO.
A reference to the IOManagerActor that performs the actual IO. It communicates with other actors using subclasses of IOMessage.
Create a SocketChannel connecting to a host and port.
Create a SocketChannel connecting to a host and port. Messages will be sent from the IOManagerActor to the owner ActorRef.
the hostname or IP to connect to
the port to connect to
the ActorRef that will receive messages from the IOManagerActor
a SocketHandle to uniquely identify the created socket
Create a SocketChannel connecting to an address.
Create a SocketChannel connecting to an address. Messages will be sent from the IOManagerActor to the owner ActorRef.
the address to connect to
the ActorRef that will receive messages from the IOManagerActor
a SocketHandle to uniquely identify the created socket
Create a ServerSocketChannel listening on a host and port.
Create a ServerSocketChannel listening on a host and port. Messages will be sent from the IOManagerActor to the owner ActorRef.
the hostname or IP to listen on
the port to listen on
the ActorRef that will receive messages from the IOManagerActor
a ServerHandle to uniquely identify the created socket
Create a ServerSocketChannel listening on an address.
Create a ServerSocketChannel listening on an address. Messages will be sent from the IOManagerActor to the owner ActorRef.
the address to listen on
the ActorRef that will receive messages from the IOManagerActor
a ServerHandle to uniquely identify the created socket
IOManager contains a reference to the IOManagerActor for an ActorSystem.
This is the recommended entry point to creating sockets for performing IO.
Use the companion object to retrieve the instance of this class for an ActorSystem.
An IOManager does not need to be manually stopped when not in use as it will automatically enter an idle state when it has no channels to manage.