From 24cafee6154b7e4e3b206f8a88fa08ffca11b2b1 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Thu, 28 Feb 2008 20:52:02 +0000 Subject: added file parameter to anymux modified makefile --- muxSocket.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'muxSocket.cpp') diff --git a/muxSocket.cpp b/muxSocket.cpp index ac49415..0e0a43f 100644 --- a/muxSocket.cpp +++ b/muxSocket.cpp @@ -3,26 +3,26 @@ #include #include +#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) +MuxSocket::MuxSocket(ISocketHandler& h) : TcpSocket(h), filename_(gOpt.getFileName()) { SetConnectTimeout(12); } - void MuxSocket::OnAccept() { - std::string filename("testoutput.txt"); - std::ifstream file(filename.c_str()); + std::ifstream file(filename_.c_str()); if( file.is_open() ) { std::string line; -- cgit v1.2.3