Browse Subversion Repository
Annotation of /WinCS/ServerSocket.cpp
Parent Directory
| Revision Log
| 1 |
sho1get |
11 |
#include "stdafx.h" |
| 2 |
|
|
#include "WinCS.h" |
| 3 |
|
|
#include "ServerSocket.h" |
| 4 |
|
|
#include "WinCSDlg.h" |
| 5 |
|
|
|
| 6 |
|
|
CServerSocket::CServerSocket() |
| 7 |
|
|
{ |
| 8 |
|
|
} |
| 9 |
|
|
|
| 10 |
|
|
CServerSocket::~CServerSocket() |
| 11 |
|
|
{ |
| 12 |
|
|
} |
| 13 |
|
|
|
| 14 |
|
|
void CServerSocket::OnAccept(int nErrorCode) |
| 15 |
|
|
{ |
| 16 |
|
|
((CWinCSDlg *)AfxGetApp()->m_pMainWnd)->OnServerAccept(nErrorCode); |
| 17 |
|
|
} |
| 18 |
|
|
|
| 19 |
|
|
void CServerSocket::OnSend(int nErrorCode) |
| 20 |
|
|
{ |
| 21 |
|
|
((CWinCSDlg *)AfxGetApp()->m_pMainWnd)->OnServerSend(nErrorCode); |
| 22 |
|
|
} |
| 23 |
|
|
|
| 24 |
|
|
void CServerSocket::OnReceive(int nErrorCode) |
| 25 |
|
|
{ |
| 26 |
|
|
((CWinCSDlg *)AfxGetApp()->m_pMainWnd)->OnServerRecieve(nErrorCode); |
| 27 |
|
|
} |
| 28 |
|
|
|
| 29 |
|
|
void CServerSocket::OnClose(int nErrorCode) |
| 30 |
|
|
{ |
| 31 |
|
|
((CWinCSDlg *)AfxGetApp()->m_pMainWnd)->OnServerClose(nErrorCode); |
| 32 |
|
|
} |
|