S.F.T. XMODEM Library  1.0
xmodem.h File Reference

main header file for S.F.T. XMODEM library More...

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <memory.h>

Go to the source code of this file.

Defines

#define FILE_TYPE   int
#define SERIAL_TYPE   int
#define SILENCE_TIMEOUT   5000 /* 5 seconds */
#define TOTAL_ERROR_COUNT   32
#define ACK_ERROR_COUNT   8

Functions

int XReceive (SERIAL_TYPE hSer, const char *szFilename, int nMode)
 Receive a file using XMODEM protocol.
int XSend (SERIAL_TYPE hSer, const char *szFilename)
 Send a file using XMODEM protocol.

Detailed Description

main header file for S.F.T. XMODEM library

S.F.T. XMODEM library

Definition in file xmodem.h.