摘要
在即时通信类系统中,服务器的安全可靠性设计是整个系统可靠性的有效保障。探讨了Winsock技术,采用双服务器冗余备份设计,从主服务器定时发送心跳socket信息,双服务器根据消息结果获知对方服务器的运转状态,从而实现主从服务器间的热切换,避免系统在服务器上出现单故障点。
In instant messaging system, server Safe Reliability Ensures whole system Reliability. This paper describes the implementation for double online standby function, which is based on Winsock. Standby server sends heart beat socket message to active server, double Servers monitor the status of each other according to Message result and accomplish the switch of each other.
出处
《电脑编程技巧与维护》
2010年第2期92-93,共2页
Computer Programming Skills & Maintenance