public static interface Acceptor.Listener
| Modifier and Type | Method and Description |
|---|---|
void |
onAccept(Socket socket,
Object attachment)
This method is called when a new connection is accepted.
|
void |
onError(String errorMsg)
This method is called when an error occurs while accepting another connection.
|
void onAccept(Socket socket, Object attachment)
socket - accepted socket.attachment - attachment passed while adding new listening port, returned back.void onError(String errorMsg)
errorMsg - message of the exception thrown.Copyright © 2005–2025 Onix Solutions. All rights reserved.