PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/install/xbt/linux/Tracker/tcp_listen_socket.cpp

http://torrentpier2.googlecode.com/
C++ | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | b99b826caeb4e7891f926c4113d00345 MD5 | raw file
 1#include "stdafx.h"
 2#include "tcp_listen_socket.h"
 3
 4#include "server.h"
 5
 6Ctcp_listen_socket::Ctcp_listen_socket()
 7{
 8	m_server = NULL;
 9}
10
11Ctcp_listen_socket::Ctcp_listen_socket(Cserver* server, const Csocket& s)
12{
13	m_server = server;
14	m_s = s;
15}
16
17void Ctcp_listen_socket::process_events(int events)
18{
19	m_server->accept(m_s);
20}