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
