Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The founder of Redis wrote the minimum chat server Smallchat in C language, with only more than 300 lines of core code.

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

CTOnews.com news on November 2, Salvatore Sanfilippo (antirez), the founder of the well-known database caching tool Redis, uploaded a chat server project called Smallchat on GitHub and wrote a service with a core code of only 300 lines in C language.

Antirez said in the project introduction that this is just a system programming example for several front-end developers, the smallest chat server he can write, with only 200 lines of core code (excluding spaces and comments), and even a user-defined nickname.

Antirez also said that there are some very interesting parts of the project, including individual processes that perform multiplexing, get client status and try to quickly access that state after the client has new data, and interested CTOnews.com partners can view the code in the project.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report