0

A friend of mine dazzeled me with by asking to write "Architecture for Client-Server in C". As I am noive in C I didnt got his question.
I don't expected a prepared recipe but I want to learn the idea what he actually meant.

Please Suggest.
Thanx

3
Contributors
3
Replies
25
Views
4 Years
Discussion Span
Last Post by Rahul47
0

Unimportant's links are good places to start, but you need to think about the process/protocols to communicate from client->server->client.

  1. Server starts and "listens" on a port for connection requests.
  2. Client attempts to "connect" to server on that port.
  3. Server "accepts" the connection request, getting a socket associated with that specific client.
  4. Client sends data to server.
  5. Server responds to client.
  6. Ad-infinitum... :-)

Have fun! This is basic networking 101 in action... :-)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.