Uses of Interface
com.aoapps.messaging.Socket
-
Uses of Socket in com.aoapps.messaging
Modifier and TypeMethodDescriptionSocketContext.getSocket
(Identifier id) Gets the socket of the given ID ornull
if not found.Modifier and TypeMethodDescriptionMap
<Identifier, ? extends Socket> SocketContext.getSockets()
Gets a snapshot of all active sockets.Modifier and TypeMethodDescriptionvoid
Called when an error occurs.void
SocketListener.onMessages
(Socket socket, List<? extends Message> messages) Called when one or more new messages arrive.void
SocketContextListener.onNewSocket
(SocketContext socketContext, Socket newSocket) Called when a new socket is created, but before it is started.void
SocketListener.onRemoteSocketAddressChange
(Socket socket, SocketAddress oldRemoteSocketAddress, SocketAddress newRemoteSocketAddress) Called when a new remote address is seen.void
SocketListener.onSocketClose
(Socket socket) Called when a socket is closed.