If this doesn't work, open a ticket.

On Aug 17, 2010 6:06 AM, "Phillip B Oldham" <[email protected]>
wrote:
> I believe TServerSocket is a wrapper. Try something like
> `sock.socket.getLocalPort()` (if it's public).
>
> On Tue, Aug 17, 2010 at 1:54 PM, Roy Smith <[email protected]> wrote:
>> I'm trying to use TServerSocket (in java) without specifying a port.  The
classic pattern is something like:
>>
>> ServerSocket sock();
>> sock.bind(0);
>> int myPort = sock.getLocalPort();
>>
>> but TServerSocket doesn't appear to have the getLocalPort()
functionality.  Am I missing something, or does this really not exist?
>>
>>
>
>
>
> --
> Phillip B Oldham
> [email protected]
> +44 (0) 7525 01 09 01

Reply via email to