| @@ -33,13 +33,13 @@ InterprocessConnectionServer::~InterprocessConnectionServer() | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber) | |||||
| bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber, const String& bindAddress) | |||||
| { | { | ||||
| stop(); | stop(); | ||||
| socket = new StreamingSocket(); | socket = new StreamingSocket(); | ||||
| if (socket->createListener (portNumber)) | |||||
| if (socket->createListener (portNumber, bindAddress)) | |||||
| { | { | ||||
| startThread(); | startThread(); | ||||
| return true; | return true; | ||||
| @@ -57,9 +57,16 @@ public: | |||||
| Use stop() to stop the thread running. | Use stop() to stop the thread running. | ||||
| @param portNumber The port on which the server will receive | |||||
| connections | |||||
| @param bindAddress The address on which the server will listen | |||||
| for connections. An empty string indicates | |||||
| that it should listen on all addresses | |||||
| assigned to this machine. | |||||
| @see createConnectionObject, stop | @see createConnectionObject, stop | ||||
| */ | */ | ||||
| bool beginWaitingForSocket (int portNumber); | |||||
| bool beginWaitingForSocket (int portNumber, const String& bindAddress = String()); | |||||
| /** Terminates the listener thread, if it's active. | /** Terminates the listener thread, if it's active. | ||||