⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 this gives details of the network programming
💻
字号:
Simple threaded server example. The server provides a "chat" serviceto multiple TCP clients. Anything sent by a client is forwarded toall other clients. Each client is handled by a thread, the threads all share informationabout the current list of clients through a set of global variables. Access to the global variables is restricted to a single thread ata time using a pthread_mutex. There is also a thread that provides system status through stdin,stdout.To test this server out, just run it and then use telnet to connect witha bunch of clients. MAXCLIENTS is currently defined to be 10, which meansthe server can support up to 10 clients at once.Files:Makefile:	makefile for building the serverserver.c:	source for the threaded server.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -