thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Smith <...@panix.com>
Subject How to discover the bound port for a TServerSocket?
Date Tue, 17 Aug 2010 12:54:58 GMT
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?


Mime
View raw message