How to output to a buffer and send to client?

Discussion in 'C Programming' started by yezi, Oct 3, 2005.

  1. yezi

    yezi Guest

    Hi:

    I am coding a client and server program in C. My task is receive the
    command from the client and output the system call in server side and
    output to client side.

    Say client ----> "date" -----> to server
    server execution "date" and put the output to client side and result
    showed in client.

    My question is if the command is "ls -al" then the result is very bid,
    how can transport whole the result to client side?


    Thanks for any comments
     
    yezi, Oct 3, 2005
    #1
    1. Advertising

  2. yezi wrote:

    > I am coding a client and server program in C. My task is receive the
    > command from the client and output the system call in server side and
    > output to client side.


    the news group comp.lang.c only deals with the standard C language.
    Standard C does not know anything about "clients" or "servers",
    I think you need to repost your question to a Unix news group.

    <snip>

    --
    Nick Keighley
     
    Nick Keighley, Oct 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Skyruner2
    Replies:
    0
    Views:
    439
    Skyruner2
    Jan 25, 2006
  2. Raja
    Replies:
    12
    Views:
    24,723
    John Harrison
    Jun 21, 2004
  3. Replies:
    2
    Views:
    639
    sergejusz
    Mar 26, 2007
  4. Neal Becker

    buffer creates only read-only buffer?

    Neal Becker, Jan 8, 2009, in forum: Python
    Replies:
    0
    Views:
    429
    Neal Becker
    Jan 8, 2009
  5. xingye
    Replies:
    9
    Views:
    301
    Michael Lu
    Apr 19, 2004
Loading...

Share This Page