by gbw » Thu Apr 16, 2009 5:49 pm
public interface DataChannelCallback {
public IPEndpoint onPASVResponse(IPEndpoint endpoint);
public IPEndpoint onPORTCommand(IPEndpoint endpoint);
}
The onPORTCommand(IPEndpoint endpoint) will only deliver the IP and port it will use for the data channel.
At this point, I thought that the ServerSocket has not been created yet, which is not correct. I just wanted to make sure that the ServerSocket has been created before the client delivers us the IP/Port.
So everything is fine. These two methods work fine.