home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / sendfile / readme next >
Text File  |  1999-05-11  |  1KB  |  47 lines

  1. SENDFILE
  2. --------
  3. The send_file() sends data from the file associated with the open file
  4. handle, directly from the file system cache over the connection associated
  5. with the socket.
  6.  
  7. SAMPLE FOR SENDFILE
  8. -------------------
  9.  
  10. There are two exes named
  11.  
  12. a) recv.exe         - TCP server application
  13. b) sendfile.exe     - TCP client application
  14.  
  15. for explaining the send_file. The client sends a file to a server.
  16.  
  17. The server can be started  as follows -
  18.  
  19. recv  <ip_addr> <port>
  20. where:
  21. a) <ip_addr> - stands for the ip address of the server.
  22. b) <port> - stands for the port number where  the server is to be bound.
  23.  
  24. The client can be started as follows -
  25.  
  26. sendfile  <ip_addr> <port> <filename>
  27. where:
  28. a) <ip_addr> - stands for the ip address of the server.
  29. b) <port> - stands for the port number where  the server is bound.
  30. c) <filename> - stands for the file to be sent.
  31.  
  32.  
  33. COMPILATION
  34. ------------
  35.  
  36. The source code for the server and the client are in the files
  37. by name -
  38.  
  39. 1) sendfile.c
  40. 2) recv.c
  41.  
  42. These can be compiled by using the makefile given and running
  43. the following command
  44.  
  45. nmake /a
  46.  
  47.