Member Avatar for Rahul47

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

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... :-)

Member Avatar for Rahul47

Thanx Guys . . . . that helped a lot.

Regards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.