aroarfw
|
00001 //network.h: 00002 00003 /* 00004 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010-2012 00005 * 00006 * This file is part of aroarfw, a RoarAudio framework for 00007 * embedded systems (µControlers). 00008 * 00009 * This file is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License version 3 00011 * or (at your option) any later version as published by 00012 * the Free Software Foundation. 00013 * 00014 * aroarfw is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this software; see the file COPYING. If not, write to 00021 * the Free Software Foundation, 51 Franklin Street, Fifth Floor, 00022 * Boston, MA 02110-1301, USA. 00023 */ 00024 00025 #ifndef _AROARFW_NETWORK_H_ 00026 #define _AROARFW_NETWORK_H_ 00027 00029 typedef enum { 00031 RSOCKETTYPE_NONE = 0, 00033 RSOCKETTYPE_TCP = 1, 00035 RSOCKETTYPE_UNIX = 2, 00037 RSOCKETTYPE_FORK = 3, 00039 RSOCKETTYPE_FILE = 4, 00041 RSOCKETTYPE_UDP = 5, 00043 RSOCKETTYPE_GENSTR = 6, 00045 RSOCKETTYPE_DECNET = 7, 00047 RSOCKETTYPE_TCP6 = 8, 00049 RSOCKETTYPE_UDP6 = 9, 00051 RSOCKETTYPE_IPXSPX = 10, 00053 RSOCKETTYPE_IPX = 11, 00055 RSOCKETTYPE_LAT_SERVICE = 12, 00057 RSOCKETTYPE_LAT_REVERSE_PORT = 13 00058 } rsocktype_t; 00059 00061 typedef enum { 00062 // Listen Socket 00063 RSOCKMODE_LISTEN = 1, 00064 // Normal client socket 00065 RSOCKMODE_CONNECT = 2 00066 } rsockmode_t; 00067 00069 #define RDEFAULT_PORT 16002 00070 00072 #define RDEFAULT_HOST "localhost" 00073 00075 #define RDEFAULT_GSOCK "/tmp/roar" 00076 00082 #define RDEFAULT_USOCK "~/.roar" 00083 00085 #define RDEFAULT_OBJECT "roar" 00086 00087 #endif 00088 00089 //ll