├── .gitignore ├── README.md ├── client.cpp └── server.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | *.smod 19 | 20 | # Compiled Static libraries 21 | *.lai 22 | *.la 23 | *.a 24 | *.lib 25 | 26 | # Executables 27 | *.exe 28 | *.out 29 | *.app 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Socket-Group-Chat 2 | 多人聊天程序的雏形。 3 | 4 | coding 环境:VS2015 WIN10 5 | 6 | 测试环境:VM虚拟机-->XP系统和主机WIN10 7 | 8 | 语言:C 9 | 10 | 功能:基于服务器转发消息的1V1聊天 11 | 12 | 主要原理:client都连上server,然后server通过判断client socket的不同进而转发消息。 13 | 14 | -------------------------------------------------------------------------------- /client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderxj/Socket-Group-Chat/57cdb2e999ecbb80c5bd17f08394c05add0ff88b/client.cpp -------------------------------------------------------------------------------- /server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderxj/Socket-Group-Chat/57cdb2e999ecbb80c5bd17f08394c05add0ff88b/server.cpp --------------------------------------------------------------------------------