public static interface SocketConnector.Listener
Modifier and Type | Method and Description |
---|---|
void |
onConnected(Socket socket)
Called when a connection is successfully established.
|
void |
onError(SocketConnector.ErrorReason errorReason,
Exception exception)
Called when there is an error during the connection attempt.
|
void onConnected(Socket socket) throws IOException
socket
- the newly created Socket objectIOException
- if there is an I/O error while handling the eventvoid onError(SocketConnector.ErrorReason errorReason, Exception exception)
errorReason
- the reason for the errorexception
- the exception that caused the errorCopyright © 2005–2024 Onix Solutions. All rights reserved.