sending binary file over internet in 'c'

sending binary file over internet in 'c'

Post by Justin Freit » Tue, 06 Sep 1994 19:51:52



I am trying to write a C program that opens and reads a file
at the server end and then writes the contents of the file in
256 character blocks to my client at the other end.  The client
then has to open a file of the same name and then write the data that
has been sent by the server to a file at the client end.

Would be grateful for any replies.
Justin Freitag.

--

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> I can be contacted at any of the following locations :-          <>


<>                                                                  <>      
<>          Justin Freitag (Bach. Information Systems - 2nd year)   <>
<>          Monash University                                       <>
<>          Caulfield Campus, Vic, Australia                        <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

 
 
 

sending binary file over internet in 'c'

Post by Charlie Bro » Thu, 15 Sep 1994 04:10:30


Justin Freitag spewed:
: I am trying to write a C program that opens and reads a file
: at the server end and then writes the contents of the file in
: 256 character blocks to my client at the other end.  The client
: then has to open a file of the same name and then write the data that
: has been sent by the server to a file at the client end.

: Would be grateful for any replies.
: Justin Freitag.

You need to get a good book on TCP/IP and read that.  You should be able to
hack some included code pretty minorly, and get it to do what you want.

Chuck
--
     _  ___   _

    | |  |   |     Intern Electrical Engineer at OTC Division, Owatonna, MN
    \_/  |   \_/                 Finger for WWW Home Page...
  ____________________________________________________________________________  
 | SPx                                                Exponent of Excellence

 
 
 

1. What's 'side effects' of Ksh built-ins?

Hi,

I have a book called "The new KornShell Command and Programming
Language". In several chapters, it mentions "side effects" of
built-ins. I'm confused what's that so that I can't understand some
paragraphs. Any help is appreciated.

Lesley Yang

2. home for security page.

3. Help: uploading whoa's - can't send files - whY

4. How to set HOSTNAME premanently?

5. lpr -- how to send 'raw' files

6. Eterm backgrounds

7. Can ISP detect when dial-ins are 'overloaded' ?

8. bad drive errors?

9. how do 'plug-ins' work?

10. Can ISP detect when dial-ins are 'overloaded' ?

11. 'sed' for Binary Files

12. Binary file transfer with 'tip'

13. 'sed' for Binary files [3rd time lucky]