비트 딱 맞는지 리눅스에서도 확인할 것
This commit is contained in:
@@ -5,13 +5,24 @@
|
||||
#include "Utils/Thread.hpp"
|
||||
#include "Utils/ThreadPool.hpp"
|
||||
#include "Utils/StringTokenizer.hpp"
|
||||
#include "Utils/Snowflake.hpp"
|
||||
#include "Packet/Packet.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <bitset>
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
void _TCPClient(Chattr::TCPSocket sock, Chattr::Address addr);
|
||||
|
||||
int main() {
|
||||
Chattr::Snowflake flake;
|
||||
flake.instance = 513;
|
||||
flake.sequence = 2049;
|
||||
flake.timestamp = 2199023255553;
|
||||
spdlog::info("{}", sizeof(Chattr::Snowflake));
|
||||
std::cout << std::bitset<64>(flake.snowflake) << "(" << std::hex << flake.snowflake << ")" << std::endl;
|
||||
return 0 ;
|
||||
struct Chattr::WSAManager wsaManager;
|
||||
auto config = Chattr::ConfigManager::load();
|
||||
Chattr::log::setDefaultLogger(config.logLevel, config.logFileName, config.logfileSize, config.logfileCount);
|
||||
@@ -53,8 +64,6 @@ int main() {
|
||||
return 1;
|
||||
}, returnedIntager, std::ref(passvalue));
|
||||
|
||||
sleep(10);
|
||||
|
||||
while (true) {
|
||||
spdlog::info("Waiting for connection...");
|
||||
sock.accept(clientSock, clientAddr);
|
||||
|
||||
Reference in New Issue
Block a user