- Use the structure linked list to dynamically manage the client information, which stores the client socket, data buffer, client IP and port, and use UINT_PTR data type to mark the client for differentiation, significantly improving efficiency and reducing CPU utilization.
- Use _beginthreadex to create multithreads that respectively accept client connection requests, send messages, and receive messages to support concurrent connections and achieve online group chat for multiple people. By setting the message boundary, the problem of package sticking and package splitting is solved.
- Use the curses graphic function library to draw the GUI in the terminal, and use the Panel to provide recognizable groups for it. For example, use the newwin function to create a new window to adjust and optimize the UI interface.
- Monitor the connection status in real time, and set offline reminders for chat objects. Support switching chat modes by typing to improve user experience.
-
Notifications
You must be signed in to change notification settings - Fork 0
alexqzh23/Socket-Chat-Program
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Socket C Language Chat Program based on TCP/IP Protocol
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published