ws-xmlrpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "WATKINS, Andy, FM" <>
Subject RE: Dynamic Web Server port assignment
Date Thu, 23 May 2002 10:09:48 GMT
We are doing something similar.
What I really want is a no-arg constructor
so that I can setup a port and socket factory
in a derived class before the base class constructor 
initialiases the web server.


-----Original Message-----
From: Rob Walker []
Sent: 23 May 2002 10:07
Subject: Dynamic Web Server port assignment

Part of our app. creates a "callback" web server, for receiving asynchronous

event notification.

I'd like to have the WebServer class pick a dynamic port for me, and from
what I 
can see if a pass a port number of "0" into the constructor it will do this.
Snag is, 
the serverSocket field is a protected variable and there's no getXXX method
gbet the actual port number assigned. Seems I can probably subclass 
WebServer to get around this, but wondered if anyone felt it merited
inclusion in 
the base class.

-- Rob Walker
SoftSell Business Systems, Ltd.
' testing solutions for a changing world '
+44 (20) 7488 3470

      Visit our Internet site at

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.

View raw message