5 #include <boost/archive/text_oarchive.hpp>
6 #include <boost/archive/text_iarchive.hpp>
9 //#include "connectionParam.h"
10 #include "Sockets/Utility.h"
11 #include "syncSocket.h"
12 #include "syncCommand.h"
16 SyncSocket::SyncSocket(ISocketHandler
& h
,ConnectionList
& cl
)
19 SetConnectTimeout(12);
24 void SyncSocket::OnAccept()
26 // Send( Utility::GetLocalHostname() + "\n");
27 // Send( Utility::GetLocalAddress() + "\n");
28 // Send("Number of sockets in list : " + Utility::l2string(Handler().GetCount()) + "\n");
32 std::ostringstream sout
;
33 boost::archive::text_oarchive
oa(sout
);
34 const SyncCommand
scom(cl_
,0);
40 //void StatusSocket::InitSSLServer()
42 // InitializeContext("server.pem", "keypwd", SSLv23_method());
46 //void StatusSocket::Init()