|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataChannelCallback
Callback that users can implement to intercept the reply from PASV and substitute a different IP address or port number to connect to. Similarly the PORT command being sent to the server can also be intercepted and modified.
| Method Summary | |
|---|---|
IPEndpoint |
onPASVResponse(IPEndpoint endpoint)
If this callback is implemented, it should return the endpoint that the user wishes to connect to. |
IPEndpoint |
onPORTCommand(IPEndpoint endpoint)
If this callback is implemented, it should return the endpoint that the server should connect to in active (PORT) mode. |
| Method Detail |
|---|
IPEndpoint onPASVResponse(IPEndpoint endpoint)
endpoint - the endpoint specified by the server's response to the PASV command
IPEndpoint onPORTCommand(IPEndpoint endpoint)
endpoint - the endpoint the client will begin listening on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||