|
[
Permlink
| « Hide
]
Jochen Wiedmann added a comment - 24/Aug/06 08:42 PM
Applied, thank you!
Jochen Wiedmann made changes - 24/Aug/06 08:42 PM
Sorry, but the current resolution is NOT satisfactory. Now the newSocket method can be overridden:
protected Socket newSocket() throws UnknownHostException, IOException { return new Socket(hostname, port); } However, hostname and port are private fields, so they cannot be accessed in a subclass. Probably the best way to fix this would be to give them as arguments to the newSocket method (like in the attached patch). protected Socket newSocket(String hostname, int port) throws UnknownHostException, IOException { return new Socket(hostname, port); }
Catalin Hritcu made changes - 25/Aug/06 06:32 AM
Sorry for the last attachment, this new one should be used.
Catalin Hritcu made changes - 25/Aug/06 06:42 AM
It works, thank you. Now the conversion to p2psockets is trivial.
Release 3.0 published, closing.
Jochen Wiedmann made changes - 05/Oct/06 08:57 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||