why did i do a subcommit right before work end
This commit is contained in:
parent
6fc1641c06
commit
b9fc0253ff
1 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include "../utils/net.hpp"
|
||||||
|
|
||||||
#define SOSC_TCP_BUFLEN 2048
|
#define SOSC_TCP_BUFLEN 2048
|
||||||
|
|
||||||
|
@ -35,12 +36,13 @@ public:
|
||||||
bool Init(std::string host, std::uint16_t port);
|
bool Init(std::string host, std::uint16_t port);
|
||||||
|
|
||||||
~TcpClient();
|
~TcpClient();
|
||||||
protected:
|
private:
|
||||||
bool Init(SOSC_SOCK_T sock, SOSC_ADDR_T addr, int addr_len);
|
bool Init(SOSC_SOCK_T sock, SOSC_ADDR_T addr, int addr_len);
|
||||||
|
|
||||||
SOSC_SOCK_T sock;
|
SOSC_SOCK_T sock;
|
||||||
bool sock_open;
|
bool sock_open;
|
||||||
|
|
||||||
|
net::IpAddress ip;
|
||||||
SOSC_ADDR_T addr;
|
SOSC_ADDR_T addr;
|
||||||
int addr_len;
|
int addr_len;
|
||||||
|
|
||||||
|
@ -54,7 +56,7 @@ public:
|
||||||
TcpServer();
|
TcpServer();
|
||||||
|
|
||||||
~TcpServer();
|
~TcpServer();
|
||||||
protected:
|
private:
|
||||||
SOSC_SOCK_T sock;
|
SOSC_SOCK_T sock;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue