port num
This commit is contained in:
parent
a416913cff
commit
b88cd9fe7c
@ -167,7 +167,7 @@ void client(std::string prefix)
|
|||||||
std::string buffer;
|
std::string buffer;
|
||||||
buffer.resize(prefix.size() + extra_buff);
|
buffer.resize(prefix.size() + extra_buff);
|
||||||
|
|
||||||
int sock = TcpSocket::connectt("petrovv.com", 8888);
|
int sock = TcpSocket::connectt("petrovv.com", serverPort);
|
||||||
|
|
||||||
if (sock < 0)
|
if (sock < 0)
|
||||||
{
|
{
|
||||||
|
@ -120,7 +120,7 @@ int main()
|
|||||||
sql::init();
|
sql::init();
|
||||||
std::thread t(checker);
|
std::thread t(checker);
|
||||||
// Bind the server to a port.
|
// Bind the server to a port.
|
||||||
int err = TcpSocket::listent("0.0.0.0", 8888, call);
|
int err = TcpSocket::listent("0.0.0.0", serverPort, call);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
{
|
{
|
||||||
printf("ERROR %d", err);
|
printf("ERROR %d", err);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
||||||
constexpr int64_t StartHeader = 1737720524UL;
|
constexpr int64_t StartHeader = 1737720524UL;
|
||||||
|
constexpr uint16_t serverPort = 9000;
|
||||||
|
|
||||||
enum Mess
|
enum Mess
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user