NetBurner 3.1
i2crecord.h
1 /* Revision: 2.8.7 */
2 
3 /******************************************************************************
4 * Copyright 1998-2018 NetBurner, Inc. ALL RIGHTS RESERVED
5 *
6 * Permission is hereby granted to purchasers of NetBurner Hardware to use or
7 * modify this computer program for any use as long as the resultant program
8 * is only executed on NetBurner provided hardware.
9 *
10 * No other rights to use this program or its derivatives in part or in
11 * whole are granted.
12 *
13 * It may be possible to license this or other NetBurner software for use on
14 * non-NetBurner Hardware. Contact sales@Netburner.com for more information.
15 *
16 * NetBurner makes no representation or warranties with respect to the
17 * performance of this computer program, and specifically disclaims any
18 * responsibility for any damages, special or consequential, connected with
19 * the use of this program.
20 *
21 * NetBurner
22 * 5405 Morehouse Dr.
23 * San Diego, CA 92121
24 * www.netburner.com
25 ******************************************************************************/
26 
27 #ifndef _I2C_RECORD_H_
28 #define _I2C_RECORD_H_
29 #pragma once
30 
31 #include <basictypes.h>
32 
33 /*
34 ******************************************************************************
35 *
36 * Class Definition (struct is class with all members public)
37 *
38 ******************************************************************************
39 */
40 struct I2CRecord
41 {
42 
43  /*
44  * Data
45  */
46  // File descriptor of listening socket
47  int FD_ListeningSocket;
48 
49  // File descriptor of connected socket
50  int FD_ConnectedSocket;
51 
52  // TRUE if we established the connection
53  BOOL bWeInitiatedConnection;
54 
55  // Time of last network sourced data in seconds since last boot
56  DWORD LastNetWorkDataRxed;
57 
58  // Time of last transmitted data in seconds since last boot
59  DWORD LastNetWorkDataTxed;
60 
61  /*
62  * Methods
63  */
64  void ProcessI2CTimeouts( void );
65 };
66 
67 #endif