Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

conn.h 575 Bytes
Newer Older
1 2
/* $Id$ */

3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef _CONN_H_
#define _CONN_H_

#include "sockwrap.h"

extern SOCKET conn_socket;
extern char *conn_types[];

enum {
	 CONN_TYPE_UNKNOWN
	,CONN_TYPE_RLOGIN
	,CONN_TYPE_TELNET
	,CONN_TYPE_RAW
deuce's avatar
deuce committed
16 17 18
#ifdef USE_CRYPTLIB
	,CONN_TYPE_SSH
#endif
19 20 21
	,CONN_TYPE_TERMINATOR
};

22
int conn_recv(char *buffer, size_t buflen, unsigned int timeout);
23
int conn_send(char *buffer, size_t buflen, unsigned int timeout);
24
int conn_connect(char *addr, int port, char *ruser, char *passwd, char *syspass, int conn_type, int speed);
25 26 27 28
int conn_close(void);
void conn_settype(int type);

#endif