Touched up ztproxy a little

This commit is contained in:
Joseph Henry
2017-09-29 15:31:44 -07:00
parent af7a164f30
commit 7c303b69fd
2 changed files with 63 additions and 110 deletions

View File

@@ -56,16 +56,15 @@ namespace ZeroTier {
Mutex tx_m, rx_m;
TcpConnection() {
printf("TcpConnection()\n");
zfd = -1;
TXbuf = new RingBuffer<unsigned char>(BUF_SZ);
RXbuf = new RingBuffer<unsigned char>(BUF_SZ);
}
~TcpConnection() {
printf("~TcpConnection()\n");
delete TXbuf;
delete RXbuf;
client_sock = NULL;
TXbuf = NULL;
RXbuf = NULL;
}
@@ -106,7 +105,7 @@ namespace ZeroTier {
Mutex conn_m;
fd_set read_set, write_set;
int nfds = 0;
int nfds;
int _proxy_listen_port;
int _internal_port;