diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-05-06 18:55:57 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-05-06 18:55:57 +0400 |
commit | f3e882346fd6d58a6c82477b9559e56b3ab0ec2b (patch) | |
tree | b71878d61f65b2c81289ddd0f14e4675877464f9 /src/apps/mplayerc/WebServerSocket.cpp | |
parent | ee19999dc6b7d7e8805f3210265f692404249c6f (diff) |
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@76 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/WebServerSocket.cpp')
-rw-r--r-- | src/apps/mplayerc/WebServerSocket.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/apps/mplayerc/WebServerSocket.cpp b/src/apps/mplayerc/WebServerSocket.cpp new file mode 100644 index 000000000..ab2ab5710 --- /dev/null +++ b/src/apps/mplayerc/WebServerSocket.cpp @@ -0,0 +1,22 @@ +#include "stdafx.h"
+#include ".\webserver.h"
+#include ".\webserversocket.h"
+
+CWebServerSocket::CWebServerSocket(CWebServer* pWebServer, int port)
+ : m_pWebServer(pWebServer)
+{
+ Create(port);
+ Listen();
+}
+
+CWebServerSocket::~CWebServerSocket()
+{
+}
+
+void CWebServerSocket::OnAccept(int nErrorCode)
+{
+ if(nErrorCode == 0 && m_pWebServer)
+ m_pWebServer->OnAccept(this);
+
+ __super::OnAccept(nErrorCode);
+}
|