NetBurner 3.5.6
PDF Version
datapump.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef _DATAPUMP_H_
6#define _DATAPUMP_H_
7
8/*
9 * Since this program may be used for machine to machine connections you
10 * can configure the messages that are sent.
11 *
12 * MTS messages are Message To Serial
13 * MTN messages are Messages to the Network
14 */
15#define MTS_WHEN_NOTCONNECTED "Waiting for connection \r\n"
16#define MTS_WHEN_CONNECTION_OPENED "New Connection Opened\r\n"
17#define MTS_WHEN_CONNECTION_CLOSED "Connection Closed by Network \r\n"
18#define MTS_WHEN_CONNECTION_TIMEDOUT "Connection Timed out and Closed\r\n"
19#define MTS_WHEN_CONNECTION_OVERIDDEN "This Connection is being Overidden.\r\n"
20
21#define MTN_WHEN_CONNECTION_OVERIDDEN "Your Connection was just Overidden\r\n"
22#define MTN_WHEN_CONNECTION_OPENED "Connection Opened \r\n"
23#define MTN_WHEN_CONNECTION_TIMEDOUT "Your Connection Timed out and will be Closed\r\n"
24
25#define BUFFER_SIZE (1500)
26#define CLIENT_WRITE_BUF_SIZE (256)
27
28int DataPump(int fd1, int fd2, int serverfd); // file descriptor data pump
29
30#endif