I think clients communicate through the server->room object, 1,manage: client-----login/quit/query-info/switch-room------->a server server---reply--------------------------------------------->client. 2,talking happens in a room: client-----send_message------------->a room room-----forward_message------>room_mates(clients).
thank you. At 2020-07-22 05:00:57, "Kevin Sapper" <[email protected]> wrote: Hi Krishna, Can your clients connect to each other or do they communicate through the server? krishnaLee <[email protected]> schrieb am So., 19. Juli 2020, 10:12: Hi experts, Though I have very few knowledges in network programming, I try to design a simple chat room server with some keypoints: 1, there is a server-node for uses to register themself /enter room /leave room/... 2, there are 0~100 room-nodes; 3, a room may contain o~1000 users; 4, any user can send a message to his/she's room; 5, then the room broadcast the message to all users in this room. My rough idea is: 1, using "server-client" pattern between user and server-node; 2, using "sub-pub" pattern for room broadcast messages to users, and using "push-poll" for room-users send message to a room; or just using "server-client" pattern between user-and-room... My idea may be not very good and I can't decide which pattern or which pattern-combination is the best choice, can you give me some advices? Thank you, Krishna. _______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
