Client Session for Chat Server

The first component is the binary reader. BinaryReader class has two member vairables: string m_buffer; uint32_t m_index; The first, m_buffer, stores a string buffer, and the second is a pointer index. Based on business requirements, data is assigned to m_buffer, then data is read and the pointer m_index is moved. The first two functions are u ...

Posted on Sat, 03 Oct 2026 16:39:56 +0000 by oolongdavies

Comprehensive Guide to Chat Server Business Logic

This document outlines the various business logic operations handled by a chat server, including essential functionalities like heartbeats, user registration, login, friend management, profile updates, group operations, and real-time messaging. Data Packet Structure All data packets are prefixed with a business id followed by a sequence number, ...

Posted on Sun, 14 Jun 2026 17:43:28 +0000 by monkeyj

Cache Manager for Chat Server

CacheManager The cache manager stores caches for notification messages and chat messages. Because users may be offline, when a friend sends a message or a group mesage is sent, those messages cannot be delivered to the user. Therefore, messages are first sent to the cache manager. When the user comes online, the cached messages are pushed to th ...

Posted on Thu, 07 May 2026 21:42:46 +0000 by egorig