Thread: *Nix TCP Client/Server

  1. #1
    Registered User Annonymous's Avatar
    Join Date
    Apr 2011
    Location
    Jackson, New Jersey, United States
    Posts
    302

    *Nix TCP Client/Server

    Does anyone who's familiar with Linux and a programmer in C, want to code a tcp server/client for practice/fun? In "MY opinion" the best way to learn is to write the program over and over and learn, study and become familiar with all the functions and the program make up as you go along. One of us can work on the server and the other on the client. I am a beginner at Linux sockets. I can write them, I know the basics. I'm just no expert.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    If you want a bit of help/guidance, I've written client-server things for various purposes in every language I know, inc. C and C++, so I could come up with a basic call and response server, throw it online, show you the source, you can write a client to match, and we can go from there -- it is not very hard to do a basic CLI chat that way.

    PM me.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I've finished a basic multi-client, persistent connection, single process echo server that could be developed into various things, inc. a forked or threaded server if that proves necessary and/or we want to do things like large data transfers.

    Source tarball:
    http://cognitivedissonance.ca/downlo...Server.tar.bz2

    If you just want to browse the source online (there are some text docs too):
    inetServer
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. client server
    By kapil1089thekin in forum C Programming
    Replies: 1
    Last Post: 01-18-2011, 02:43 PM
  2. Client/server problem; server either stops receiving data or client stops sending
    By robot-ic in forum Networking/Device Communication
    Replies: 10
    Last Post: 02-16-2009, 11:45 AM
  3. how we can get client id in server
    By cnu_sree in forum Networking/Device Communication
    Replies: 1
    Last Post: 09-04-2006, 05:14 AM
  4. Client/Server
    By zonf in forum Networking/Device Communication
    Replies: 13
    Last Post: 12-18-2005, 11:12 AM
  5. client / server
    By PutoAmo in forum C Programming
    Replies: 4
    Last Post: 05-24-2002, 05:09 PM

Tags for this Thread