diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-04-12 11:38:42 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-04-12 11:38:42 +0000 |
commit | fffd213c8cba2135afda493d797c41c10354770e (patch) | |
tree | bb5eea1b12871d8c3fed0e687d83be3e504d11b2 /muxSocket.cpp | |
parent | svn cleanup (diff) |
big svn cleanup
Diffstat (limited to 'muxSocket.cpp')
-rw-r--r-- | muxSocket.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/muxSocket.cpp b/muxSocket.cpp deleted file mode 100644 index 0e0a43f..0000000 --- a/muxSocket.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include <sstream> -#include <iostream> -#include <fstream> -#include <string> - -#include "anymuxOptions.h" - -#include "Sockets/Utility.h" -#include "muxSocket.h" - - -#ifdef SOCKETS_NAMESPACE -using namespace SOCKETS_NAMESPACE; -#endif // SOCKETS_NAMESPACE - - -MuxSocket::MuxSocket(ISocketHandler& h) : TcpSocket(h), filename_(gOpt.getFileName()) -{ - SetConnectTimeout(12); -} - - -void MuxSocket::OnAccept() -{ - std::ifstream file(filename_.c_str()); - if( file.is_open() ) - { - std::string line; - while( !file.eof() ) - { - getline( file, line ); - Send( line ); - } - file.close(); - } - - //TODO Locking here -} - -//void StatusSocket::InitSSLServer() -//{ -// InitializeContext("server.pem", "keypwd", SSLv23_method()); -//} -// -// -//void StatusSocket::Init() -//{ -// EnableSSL(); -//} |