diff options
author | Erwin Nindl <nine@wirdorange.org> | 2008-02-28 20:52:02 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2008-02-28 20:52:02 +0000 |
commit | 24cafee6154b7e4e3b206f8a88fa08ffca11b2b1 (patch) | |
tree | d8841d8650d0a25e5c01af85b2dbc1681b5ab660 /muxSocket.cpp | |
parent | sync bugfix (diff) |
added file parameter to anymux
modified makefile
Diffstat (limited to 'muxSocket.cpp')
-rw-r--r-- | muxSocket.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/muxSocket.cpp b/muxSocket.cpp index ac49415..0e0a43f 100644 --- a/muxSocket.cpp +++ b/muxSocket.cpp @@ -3,26 +3,26 @@ #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) +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; |