summaryrefslogtreecommitdiff
path: root/src/anyCtrSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-10-19 20:06:14 +0000
committerOthmar Gsenger <otti@anytun.org>2008-10-19 20:06:14 +0000
commit7ec2d1c53b753238509bf7a89587509305b9216d (patch)
tree2e81d3fbd6b2a515f71449a2a16b2c69ecf4ddad /src/anyCtrSocket.cpp
parentswitched from PracticalSocket to libasio (diff)
move to asio socket libary for sync
bugs / todos: * new connections don't sync * anyrtpproxy broken * anytun-controlld doesn't send data
Diffstat (limited to 'src/anyCtrSocket.cpp')
-rw-r--r--src/anyCtrSocket.cpp79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/anyCtrSocket.cpp b/src/anyCtrSocket.cpp
deleted file mode 100644
index e93468b..0000000
--- a/src/anyCtrSocket.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * anytun
- *
- * The secure anycast tunneling protocol (satp) defines a protocol used
- * for communication between any combination of unicast and anycast
- * tunnel endpoints. It has less protocol overhead than IPSec in Tunnel
- * mode and allows tunneling of every ETHER TYPE protocol (e.g.
- * ethernet, ip, arp ...). satp directly includes cryptography and
- * message authentication based on the methodes used by SRTP. It is
- * intended to deliver a generic, scaleable and secure solution for
- * tunneling and relaying of packets of any protocol.
- *
- *
- * Copyright (C) 2007-2008 Othmar Gsenger, Erwin Nindl,
- * Christian Pointner <satp@wirdorange.org>
- *
- * This file is part of Anytun.
- *
- * Anytun is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
- *
- * Anytun is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with anytun. If not, see <http://www.gnu.org/licenses/>.
- */
-#include <sstream>
-#include <iostream>
-#include <fstream>
-#include <string>
-
-#include "anyCtrOptions.h"
-
-#include "Sockets/Utility.h"
-#include "anyCtrSocket.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();
-//}