|
|
@ -7,6 +7,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
#include <pthread.h> |
|
|
|
#include "Log.h" |
|
|
|
#include "Log.h" |
|
|
|
#include "Timestamp.h" |
|
|
|
#include "Timestamp.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
#include "RouterContext.h" |
|
|
@ -142,6 +143,8 @@ namespace transport |
|
|
|
|
|
|
|
|
|
|
|
void SSUServer::Run () |
|
|
|
void SSUServer::Run () |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
pthread_setname_np(pthread_self(), "SSU"); |
|
|
|
|
|
|
|
|
|
|
|
while (m_IsRunning) |
|
|
|
while (m_IsRunning) |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
try |
|
|
@ -157,6 +160,8 @@ namespace transport |
|
|
|
|
|
|
|
|
|
|
|
void SSUServer::RunReceivers () |
|
|
|
void SSUServer::RunReceivers () |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
pthread_setname_np(pthread_self(), "SSUv4"); |
|
|
|
|
|
|
|
|
|
|
|
while (m_IsRunning) |
|
|
|
while (m_IsRunning) |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
try |
|
|
@ -179,6 +184,8 @@ namespace transport |
|
|
|
|
|
|
|
|
|
|
|
void SSUServer::RunReceiversV6 () |
|
|
|
void SSUServer::RunReceiversV6 () |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
pthread_setname_np(pthread_self(), "SSUv6"); |
|
|
|
|
|
|
|
|
|
|
|
while (m_IsRunning) |
|
|
|
while (m_IsRunning) |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
try |
|
|
|