Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Linux Sockets in C (http://www.go4expert.com/forums/linux-sockets-c-t23786/)

Scythed 7Nov2010 12:01

Linux Sockets in C
Hi everyone,

I am trying to learn how to do socket programming. What I am trying to do right now is the following:

1. Client and Server which communicate on localhost using whichever port I designate
2. Server has a text file stored on it
3. Client can send a query to the Server to peruse the text file and get contents (for example if the text file is an address book, I want to be able to send the name of the person as a query and get the Server to return the address after browsing the text file).

I am trying to do this in Linux because it seems to be the most simple out of all the operating systems in terms of complexity etc.

If anyone could give me any pointers or a step in the right direction that would be GREAT!


All times are GMT +5.5. The time now is 21:01.