version 1.53, 2003/10/05 15:36:03
|
version 1.54, 2003/10/05 23:25:43
|
|
|
// | // |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
| |
|
#define MAX_NUMBER_OF_MONITOR_ENTRIES 32 |
Monitor::Monitor() | Monitor::Monitor() |
: _module_handle(0), _controller(0), _async(false), _stopConnections(0) | : _module_handle(0), _controller(0), _async(false), _stopConnections(0) |
{ | { |
|
int numberOfMonitorEntriesToAllocate = MAX_NUMBER_OF_MONITOR_ENTRIES; |
Socket::initializeInterface(); | Socket::initializeInterface(); |
_rep = 0; | _rep = 0; |
_entries.reserveCapacity(32); |
_entries.reserveCapacity(numberOfMonitorEntriesToAllocate); |
for( int i = 0; i < 32; i++ ) |
for( int i = 0; i < numberOfMonitorEntriesToAllocate; i++ ) |
{ | { |
_MonitorEntry entry(0, 0, 0); | _MonitorEntry entry(0, 0, 0); |
_entries.append(entry); | _entries.append(entry); |
|
|
Monitor::Monitor(Boolean async) | Monitor::Monitor(Boolean async) |
: _module_handle(0), _controller(0), _async(async), _stopConnections(0) | : _module_handle(0), _controller(0), _async(async), _stopConnections(0) |
{ | { |
|
int numberOfMonitorEntriesToAllocate = MAX_NUMBER_OF_MONITOR_ENTRIES; |
Socket::initializeInterface(); | Socket::initializeInterface(); |
_rep = 0; | _rep = 0; |
_entries.reserveCapacity(32); |
_entries.reserveCapacity(numberOfMonitorEntriesToAllocate); |
for( int i = 0; i < 32; i++ ) |
for( int i = 0; i < numberOfMonitorEntriesToAllocate; i++ ) |
{ | { |
_MonitorEntry entry(0, 0, 0); | _MonitorEntry entry(0, 0, 0); |
_entries.append(entry); | _entries.append(entry); |