public override void handle_connect(AsyncConnect ar) { Socket sock = (Socket)ar.handle(); iServiceHandler svc = m_service_handler_strategy.makeServiceHandler(); svc.open(sock); }
private int handle_accept(SocketAsyncEventArgs e) { Socket sock2 = e.AcceptSocket; iServiceHandler svc = m_service_handler_strategy.makeServiceHandler(); svc.open(sock2); return(0); }