// dont care of last unused bits
char buffer[256] {};
auto j = snprintf(buffer, 256, "%s_", ranName);
+
+ memcpy(ranName, buffer, j);
+/*
+ // ran name decimal
+ unsigned long bitValue = 0;
+ for (auto i = 0; i < (int)data.size; i++) {
+ bitValue <<= (unsigned long)8;
+ bitValue += data.buf[i];
+ }
+
+ j = snprintf(buffer, 256, "%s%ld", ranName, bitValue);
+
memcpy(ranName, buffer, j);
+*/
+
unsigned b1 = 0;
unsigned b2 = 0;
std::vector<std::thread> threads(num_cpus);
// std::vector<std::thread> threads;
- num_cpus = 1;
+ num_cpus = 3;
for (unsigned int i = 0; i < num_cpus; i++) {
threads[i] = std::thread(listener, &sctpParams);