home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / MODULA / FSTCOMPI / XMODEM.DEF < prev    next >
Text File  |  1993-12-01  |  1KB  |  32 lines

  1. DEFINITION MODULE XModem;
  2.  
  3. (* (C) Copyright 1987 Fitted Software Tools. All rights reserved.
  4.  
  5.     This module is part of the example multitasking communications program
  6.     provided with the Fitted Software Tools' Modula-2 development system.
  7.  
  8.     Registered users may use this program as is, or they may modify it to
  9.     suit their needs or as an exercise.
  10.  
  11.     If you develop interesting derivatives of this program and would like
  12.     to share it with others, we encourage you to upload a copy to our BBS.
  13. *)
  14.  
  15.  
  16. (*
  17.     This module provides procedures that implement the XMODEM file
  18.     transfer protocol.
  19.  
  20.     The file to be sent/received must be openned by the caller.
  21.  
  22.     The name of the file and its file descriptor are passed to these
  23.     procedures.
  24.  
  25.     ok will reflect the success of the transfer.
  26. *)
  27.  
  28. PROCEDURE SendFile( filename :ARRAY OF CHAR; fd :INTEGER; VAR ok :BOOLEAN );
  29.  
  30. PROCEDURE ReceiveFile( filename :ARRAY OF CHAR; fd :INTEGER; VAR ok :BOOLEAN );
  31.  
  32. END XModem.