1 /* 2 * 3 * XASTIR, Amateur Station Tracking and Information Reporting 4 * Copyright (C) 2000-2019 The Xastir Group 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 * 20 * Look at the README for more information on the program. 21 */ 22 23 #ifndef __XASTIR_SERVER_H 24 #define __XASTIR_SERVER_H 25 26 //#include "xastir.h" 27 28 29 #define NET_CONNECT_TIMEOUT 20 30 #define SERV_TCP_PORT 2023 31 #define SERV_UDP_PORT 2023 32 33 34 extern char *pname; 35 extern int pipe_xastir_to_tcp_server; 36 extern int pipe_tcp_server_to_xastir; 37 extern int pipe_xastir_to_udp_server; 38 extern int pipe_udp_server_to_xastir; 39 40 extern int writen(int fd, char *ptr, int nbytes); 41 extern int readline(int fd, char *ptr, int maxlen); 42 extern int Fork_TCP_server(int argc, char *argv[], char *envp[]); 43 extern int Fork_UDP_server(int argc, char *argv[], char *envp[]); 44 45 46 #endif /* XASTIR_SERVER_H */ 47 48