开发者

creating a chat program [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplet开发者_运维百科e, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

i know how to create a single client and server program for chat i need to improvise this for multiple clients so that we should be able to communicate between two individual clients


This question is incredibly vague as currently phrased.

My guess is you're new to client-server communications. Start with Beej's Guide to Network Programming.


thats a tall order. whatever solution you have for 1 client/server probably wont work. With no other requirements, I would do the following:

  1. In the server, create a db with 2 tables, one for conversation and one for messages.
  2. The clients query the server for the conversation list, and then choose which conversation to listen on.
  3. Clients get updates by polling the server every X units of time.

This is a hard question that could be implemented many ways. How many clients were you thinking?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜