Merge branch 'master' of git.ucc.asn.au:/matches/honours
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Networking / ServerDlg / Server.cpp
1 //////////////////////////////////////////////\r
2 // Server.cpp\r
3 \r
4 #include "stdafx.h"\r
5 #include "DialogApp.h"\r
6 #include "Server.h"\r
7 \r
8 \r
9 /////////////////////////////////////////\r
10 // Definitions of the CServerSocket class\r
11 //\r
12 void CServerSocket::OnDisconnect()\r
13 {\r
14         CSvrDialog& Dialog = ((CDialogApp*)GetApp())->GetDialog();\r
15         PostMessage(Dialog, USER_DISCONNECT, (WPARAM)this, 0);\r
16 }\r
17 \r
18 void CServerSocket::OnAccept()\r
19 {\r
20         CSvrDialog& Dialog = ((CDialogApp*)GetApp())->GetDialog();\r
21         PostMessage(Dialog, USER_ACCEPT, 0, 0);\r
22 }\r
23 \r
24 void CServerSocket::OnReceive()\r
25 {\r
26         CSvrDialog& Dialog = ((CDialogApp*)GetApp())->GetDialog();\r
27         PostMessage(Dialog, USER_RECEIVE, (WPARAM)this, 0);\r
28 }\r
29 \r
30 \r
31 \r
32 \r
33 \r
34 \r
35 \r
36 \r

UCC git Repository :: git.ucc.asn.au