small method changes

This commit is contained in:
Joseph Henry 2015-09-11 14:00:42 -04:00
parent cc4a2bb0c3
commit 5a5a513b18
4 changed files with 22 additions and 18 deletions

View file

@ -129,16 +129,11 @@ namespace ZeroTier {
return NULL;
}
void closeConnection(NetconConnection *c)
void removeConnection(PhySocket *sock)
{
// close all connections
// -- pcb
// -- PhySocket
}
void closeConnection(PhySocket *sock)
{
for(size_t i=0; i<connections.size(); i++) {
if(connections[i]->sock == sock) { connections.erase(connections.begin() + i); }
}
}
void closeClient()