Description: 1. Which do UDP-based chat rooms, use of UDP broadcasts, simply start the exe in the LAN where you can work without the need for server-side. Development of thought: in the " on line" start a thread loop to recv receiving broadcast information. " send" button to broadcast information. 2. TCP-based chat rooms. WSAAsyncSelect using non-blocking message mode. First start the service ChatRoomServer.exe start server, the server-side listen to the information from the client side, when a client connection, the server-side accpet the client to establish a connection with the trigger message function OnServerAccept. OnServerAccept reuse WSAAsyncSelect and accept the recv function is to determine the client sent the information and broadcasting, in order to achieve the effect of chat rooms.
- [chattoolsvc.net] - procedures in the VC. Compiled by achiev
- [socket_sever] - Since writing using delphi control tcp c
- [tcp] - A simple network communication system, c
- [aodv_v8] - Aodv for NS-2. A mobile ad-hoc network (
- [MultiProxy] - Simple multi-agent, agent A to agent usi
- [WSAAsyncSelect] - Select model based on asynchronous chat
File list (Check if you may need any files):
聊天室
......\code
......\....\TCP
......\....\...\ChatRoomClient
......\....\...\..............\ChatRoomClient.aps
......\....\...\..............\ChatRoomClient.cpp
......\....\...\..............\ChatRoomClient.h
......\....\...\..............\ChatRoomClient.rc
......\....\...\..............\ChatRoomClient.sln
......\....\...\..............\ChatRoomClient.vcproj
......\....\...\..............\ChatRoomClientDlg.cpp
......\....\...\..............\ChatRoomClientDlg.h
......\....\...\..............\Debug
......\....\...\..............\ReadMe.txt
......\....\...\..............\res
......\....\...\..............\...\ChatRoomClient.manifest
......\....\...\..............\...\ChatRoomClient.rc2
......\....\...\..............\Resource.h
......\....\...\..............\stdafx.cpp
......\....\...\..............\stdafx.h
......\....\...\ChatRoomDemo
......\....\...\............\ChatRoomDemo.aps
......\....\...\............\ChatRoomDemo.cpp
......\....\...\............\ChatRoomDemo.h
......\....\...\............\ChatRoomDemo.rc
......\....\...\............\ChatRoomDemo.sln
......\....\...\............\ChatRoomDemo.vcproj
......\....\...\............\ChatRoomDemoDlg.cpp
......\....\...\............\ChatRoomDemoDlg.h
......\....\...\............\Debug
......\....\...\............\ReadMe.txt
......\....\...\............\res
......\....\...\............\...\ChatRoomDemo.rc2
......\....\...\............\Resource.h
......\....\...\............\stdafx.cpp
......\....\...\............\stdafx.h
......\....\UDP
......\....\...\ChatDemo
......\....\...\........\ChatDemo.aps
......\....\...\........\ChatDemo.cpp
......\....\...\........\ChatDemo.h
......\....\...\........\ChatDemo.rc
......\....\...\........\ChatDemo.sln
......\....\...\........\ChatDemo.vcproj
......\....\...\........\ChatDemoDlg.cpp
......\....\...\........\ChatDemoDlg.h
......\....\...\........\Debug
......\....\...\........\ReadMe.txt
......\....\...\........\res
......\....\...\........\...\ChatDemo.manifest
......\....\...\........\...\ChatDemo.rc2
......\....\...\........\Resource.h
......\....\...\........\stdafx.cpp
......\....\...\........\stdafx.h
......\exe
......\...\TCP
......\...\...\ChatRoomClient.exe
......\...\...\ChatRoomServer.exe
......\...\...\mfc71d.dll
......\...\...\msvcr71d.dll
......\...\UDP
......\...\...\ChatDemo.exe
......\...\...\mfc71d.dll
......\...\...\msvcr71d.dll
......\Readme.txt