small method changes
This commit is contained in:
parent
cc4a2bb0c3
commit
5a5a513b18
4 changed files with 22 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue