1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux Sockets in C

Discussion in 'C' started by Scythed, Nov 7, 2010.

  1. Scythed

    Scythed New Member

    Nov 7, 2010
    Likes Received:
    Trophy Points:
    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!


Share This Page