refactor in progress

This commit is contained in:
Joseph Henry
2015-09-10 18:19:43 -04:00
parent c1f1530d54
commit e391bc004b
3 changed files with 57 additions and 47 deletions

View File

@@ -96,6 +96,7 @@ namespace ZeroTier {
for(int i=0; i<connections.size(); i++) {
if(connections[i]->their_fd == fd) { return connections[i]; }
}
return NULL;
}
//
@@ -104,6 +105,7 @@ namespace ZeroTier {
for(int i=0; i<connections.size(); i++) {
if(connections[i]->pcb = pcb) { return connections[i]; }
}
return NULL;
}
NetconConnection *containsPCB(struct tcp_pcb *pcb)
@@ -111,13 +113,7 @@ namespace ZeroTier {
for(int i=0; i<connections.size(); i++) {
if(connections[i]->pcb = pcb) { return connections[i]; }
}
}
NetconConnection *containsPCB(struct tcp_pcb *pcb)
{
for(int i=0; i<connections.size(); i++) {
if(connections[i]->pcb = pcb) { return connections[i]; }
}
return NULL;
}
void close()