version 1.6, 2002/02/27 01:07:04
|
version 1.7, 2002/03/04 19:56:08
|
|
|
_rep->connections.clear(); | _rep->connections.clear(); |
} | } |
| |
|
void HTTPConnector::disconnect(HTTPConnection* currentConnection) |
|
{ |
|
// |
|
// find and delete the specified connection |
|
// |
|
for (Uint32 i = 0, n = _rep->connections.size(); i < n; i++) |
|
{ |
|
if (currentConnection == _rep->connections[i]) |
|
{ |
|
HTTPConnection* connection = _rep->connections[i]; |
|
Sint32 socket = connection->getSocket(); |
|
|
|
// |
|
// Unsolicit SocketMessages: |
|
// |
|
_monitor->unsolicitSocketMessages(socket); |
|
|
|
// |
|
// Destroy the connection (causing it to close): |
|
// |
|
delete connection; |
|
|
|
return; |
|
} |
|
} |
|
} |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |