This commit is contained in:
Nikola Petrov 2025-01-30 22:49:06 +01:00
parent a416913cff
commit b88cd9fe7c
3 changed files with 3 additions and 2 deletions

View File

@ -167,7 +167,7 @@ void client(std::string prefix)
std::string buffer;
buffer.resize(prefix.size() + extra_buff);
int sock = TcpSocket::connectt("petrovv.com", 8888);
int sock = TcpSocket::connectt("petrovv.com", serverPort);
if (sock < 0)
{

View File

@ -120,7 +120,7 @@ int main()
sql::init();
std::thread t(checker);
// 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)
{
printf("ERROR %d", err);

View File

@ -1,6 +1,7 @@
#include <cinttypes>
constexpr int64_t StartHeader = 1737720524UL;
constexpr uint16_t serverPort = 9000;
enum Mess
{