Files

37 lines
1.7 KiB
C
Raw Permalink Normal View History

2018-01-19 11:43:05 -08:00
/* W32CTCA.H (C) Copyright "Fish" (David B. Trout), 2002-2014 */
2014-07-08 14:11:00 -07:00
/* CTCI-WIN (Channel to Channel link to Win32 TCP/IP stack) */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
2002-02-02 01:20:00 +00:00
#ifndef _W32CTCA_H_
#define _W32CTCA_H_
2019-04-24 16:09:04 -07:00
#if defined( OPTION_W32_CTCI )
2002-02-02 01:20:00 +00:00
2009-06-02 03:58:49 +00:00
#include "tt32api.h" // (#define TUNTAP32_DLLNAME)
2002-02-02 01:20:00 +00:00
#define MAX_TT32_DLLNAMELEN (512)
2009-06-02 03:58:49 +00:00
#define DEF_TT32_DLLNAME TUNTAP32_DLLNAME // (from tt32api.h)
2002-02-02 01:20:00 +00:00
2019-04-24 16:09:04 -07:00
extern char g_tt32_dllname [ MAX_TT32_DLLNAMELEN ];
2002-02-02 01:20:00 +00:00
extern void tt32_init ();
2006-04-21 08:49:08 +00:00
extern int tt32_open ( char* pszGatewayDevice, int iFlags );
extern int tt32_read ( int fd, u_char* buffer, u_long size );
extern int tt32_write ( int fd, u_char* buffer, u_long size );
extern int tt32_beg_write_multi ( int fd, u_long bufsiz );
extern int tt32_end_write_multi ( int fd );
2006-04-21 08:49:08 +00:00
extern int tt32_close ( int fd );
extern int tt32_ioctl ( int fd, int iRequest, char* argp );
extern const char* tt32_get_default_iface ();
extern int tt32_build_herc_iface_mac ( BYTE* out_mac, const BYTE* in_ip );
2019-04-24 16:09:04 -07:00
extern void tt32_version_numbers ( int* major, int* inter, int* minor, int* build );
2006-04-21 08:49:08 +00:00
extern int display_tt32_stats ( int fd );
extern bool enable_tt32_debug_tracing ( int enable );
2019-04-24 16:09:04 -07:00
#endif // defined( OPTION_W32_CTCI )
2002-02-02 01:20:00 +00:00
#endif // _W32CTCA_H_