1 // ///////////////////////////////////////////////////////////////////////////
2 // Copyright (C) 2002 Ultr@VNC Team Members. All Rights Reserved.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 //
19 // Program is based on the
20 // http://www.imasy.or.jp/~gotoh/ssh/connect.c
21 // Written By Shun-ichi GOTO <gotoh@taiyo.co.jp>
22 //
23 // If the source code for the program is not available from the place
24 // from which you received this file, check
25 // http://ultravnc.sourceforge.net/
26 //
27 // Linux port (C) 2005- Jari Korhonen, jarit1.korhonen@dnainternet.net
28 //////////////////////////////////////////////////////////////////////
29 
30 #ifndef REPEATER_H
31 #define REPEATER_H
32 
33 extern void debug(int msgLevel, const char *fmt, ...);
34 extern void fatal(const char *fmt, ...);
35 extern int openConnectionToEventListener(const char *host, unsigned short port, char *listenerIp, int listenerIpSize);
36 extern int writeExact(int sock, char *buf, int len, int timeOutSecs);
37 
38 #endif
39