• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

include/aroarfw/network.h

Go to the documentation of this file.
00001 //network.h:
00002 
00003 /*
00004  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010
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 {
00030 #if 0
00031 #define RSOCKETTYPE_INET    1
00032 #define RSOCKETTYPE_TCP     ROAR_SOCKET_TYPE_INET
00033 #define RSOCKETTYPE_GENSTR  6 /* generic stream: TCP or UNIX */
00034 #define RSOCKETTYPE_DECNET  7 /* DECnet */
00035 #endif
00036 
00037  RSOCKETTYPE_NONE       =  0,
00039  RSOCKETTYPE_TCP        =  1,
00041  RSOCKETTYPE_UNIX       =  2,
00043  RSOCKETTYPE_FORK       =  3,
00045  RSOCKETTYPE_FILE       =  4,
00047  RSOCKETTYPE_UDP        =  5,
00049  RSOCKETTYPE_GENSTR     =  6,
00051  RSOCKETTYPE_DECNET     =  7,
00053  RSOCKETTYPE_TCP6       =  8,
00055  RSOCKETTYPE_UDP6       =  9,
00057  RSOCKETTYPE_IPXSPX     = 10,
00059  RSOCKETTYPE_IPX        = 11
00060 } rsocktype_t;
00061 
00063 typedef enum {
00064  // Listen Socket
00065  RSOCKMODE_LISTEN  = 1,
00066  // Normal client socket
00067  RSOCKMODE_CONNECT = 2
00068 } rsockmode_t;
00069 
00071 #define RDEFAULT_PORT   16002
00072 
00074 #define RDEFAULT_HOST   "localhost"
00075 
00077 #define RDEFAULT_GSOCK  "/tmp/roar"
00078 
00084 #define RDEFAULT_USOCK  "~/.roar"
00085 
00087 #define RDEFAULT_OBJECT "roar"
00088 
00089 #endif
00090 
00091 //ll

Generated on Wed Oct 27 2010 16:02:38 for aroarfw by  doxygen 1.7.1