home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
rxtelnet.zip
/
nvt
/
nvt.h
< prev
next >
Wrap
Text File
|
1997-09-01
|
1KB
|
42 lines
#define DEFAULTPORT 23
#define MAXLINESIZE 256
#define RECVTIMEOUT 1000
typedef unsigned long HNVT;
HNVT nvtopen( char *hostname, int port );
int nvtclose( HNVT hnvt );
int nvtgets( HNVT hnvt, char *buf, int bufsize );
int nvtputs( HNVT hnvt, char *buf, int bufsize );
int nvtpeek( HNVT hnvt, int timeout );
/* telnet out-of-band commands */
#define _GA "GA"
#define _AYT "AYT"
#define _AO "AO"
#define _IP "IP"
#define _BREAK "BREAK"
#define _NOP "NOP"
#define _EOR "EOR"
#define _ABORT "ABORT"
#define _SUSP "SUSP"
#define _EOF "EOF"
int nvtcommand( HNVT hnvt, char *command );
typedef struct /* nvt link information */
{
unsigned long addr; /* address of connection host */
int port; /* port used for connection */
int socket; /* socket used for connection */
}
LNVT;
int nvtquery( HNVT hnvt, LNVT *link );