From 7ec2d1c53b753238509bf7a89587509305b9216d Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Sun, 19 Oct 2008 20:06:14 +0000 Subject: move to asio socket libary for sync bugs / todos: * new connections don't sync * anyrtpproxy broken * anytun-controlld doesn't send data --- src/anyCtrSocket.cpp | 79 ---------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/anyCtrSocket.cpp (limited to 'src/anyCtrSocket.cpp') 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 - * - * 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 . - */ -#include -#include -#include -#include - -#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(); -//} -- cgit v1.2.3