Skip to content

Socket C Language Chat Program based on TCP/IP Protocol

Notifications You must be signed in to change notification settings

alexqzh23/Socket-Chat-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Socket-Chat-Program

  1. 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.
  2. 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.
  3. 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.
  4. Monitor the connection status in real time, and set offline reminders for chat objects. Support switching chat modes by typing to improve user experience.

About

Socket C Language Chat Program based on TCP/IP Protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published