summaryrefslogtreecommitdiff
path: root/syncSocketHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'syncSocketHandler.cpp')
-rw-r--r--syncSocketHandler.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/syncSocketHandler.cpp b/syncSocketHandler.cpp
deleted file mode 100644
index 25f4c43..0000000
--- a/syncSocketHandler.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-//#include <sstream>
-//#include <iostream>
-//#include <string>
-//
-//#include <boost/archive/text_oarchive.hpp>
-//#include <boost/archive/text_iarchive.hpp>
-
-
-//#include "connectionParam.h"
-//#include "Sockets/Utility.h"
-#include "syncSocketHandler.h"
-#include "syncListenSocket.h"
-#include "syncSocket.h"
-#include "connectionList.h"
-//#include "buffer.h"
-//#include "log.h"
-
-SyncSocketHandler::SyncSocketHandler(SyncQueue & queue)
-:SocketHandler(),queue_(queue)
-{
-}
-
-int SyncSocketHandler::Select(long sec,long usec)
-{
- if(!queue_.empty())
- {
- std::string sendstr = queue_.pop();
- for (socket_m::iterator it = m_sockets.begin(); it != m_sockets.end(); it++)
- {
- ::SOCKETS_NAMESPACE::Socket *p = (*it).second;
- TcpSocket *p3 = dynamic_cast<TcpSocket *>(p);
- //SyncListenSocket<SyncSocket,ConnectionList> *p4 = dynamic_cast<SyncListenSocket<SyncSocket,ConnectionList> *>(p);
- if (p3)
- p3->Send(sendstr);
- }
- }
- return SocketHandler::Select(sec,usec);
-}