aroarfw
include
aroarfw
network.h
Go to the documentation of this file.
1
//network.h:
2
3
/*
4
* Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010-2013
5
*
6
* This file is part of aroarfw, a RoarAudio framework for
7
* embedded systems (µControlers).
8
*
9
* This file is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License version 3
11
* or (at your option) any later version as published by
12
* the Free Software Foundation.
13
*
14
* aroarfw is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this software; see the file COPYING. If not, write to
21
* the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301, USA.
23
*/
24
25
#ifndef _AROARFW_NETWORK_H_
26
#define _AROARFW_NETWORK_H_
27
29
typedef
enum
{
31
RSOCKETTYPE_NONE
= 0,
33
RSOCKETTYPE_TCP
= 1,
35
RSOCKETTYPE_UNIX
= 2,
37
RSOCKETTYPE_FORK
= 3,
39
RSOCKETTYPE_FILE
= 4,
41
RSOCKETTYPE_UDP
= 5,
43
RSOCKETTYPE_GENSTR
= 6,
45
RSOCKETTYPE_DECNET
= 7,
47
RSOCKETTYPE_TCP6
= 8,
49
RSOCKETTYPE_UDP6
= 9,
51
RSOCKETTYPE_IPXSPX
= 10,
53
RSOCKETTYPE_IPX
= 11,
55
RSOCKETTYPE_LAT_SERVICE
= 12,
57
RSOCKETTYPE_LAT_REVERSE_PORT
= 13
58
}
rsocktype_t
;
59
61
typedef
enum
{
62
// Listen Socket
63
RSOCKMODE_LISTEN
= 1,
64
// Normal client socket
65
RSOCKMODE_CONNECT
= 2
66
}
rsockmode_t
;
67
69
#define RDEFAULT_PORT 16002
70
72
#define RDEFAULT_HOST "localhost"
73
75
#define RDEFAULT_GSOCK "/tmp/roar"
76
82
#define RDEFAULT_USOCK "~/.roar"
83
85
#define RDEFAULT_OBJECT "roar"
86
87
#endif
88
89
//ll
RSOCKETTYPE_LAT_REVERSE_PORT
LAT reverse port.
Definition:
network.h:57
RSOCKETTYPE_UDP
UDP.
Definition:
network.h:41
RSOCKMODE_CONNECT
Definition:
network.h:65
RSOCKETTYPE_DECNET
DECnet.
Definition:
network.h:45
RSOCKETTYPE_FILE
Normal file (may be specal device, too, everything open() works on)
Definition:
network.h:39
RSOCKETTYPE_NONE
None, not set, unknown, invalid.
Definition:
network.h:31
rsockmode_t
rsockmode_t
Possible socket modes.
Definition:
network.h:61
RSOCKETTYPE_TCP6
TCP6.
Definition:
network.h:47
RSOCKETTYPE_UDP6
UDP6.
Definition:
network.h:49
rsocktype_t
rsocktype_t
Possible socket types.
Definition:
network.h:29
RSOCKETTYPE_GENSTR
Generic stream.
Definition:
network.h:43
RSOCKETTYPE_UNIX
UNIX Socket.
Definition:
network.h:35
RSOCKMODE_LISTEN
Definition:
network.h:63
RSOCKETTYPE_IPXSPX
IPX/SPX.
Definition:
network.h:51
RSOCKETTYPE_FORK
Fork (internal use only)
Definition:
network.h:37
RSOCKETTYPE_TCP
TCP Socket.
Definition:
network.h:33
RSOCKETTYPE_LAT_SERVICE
LAT Service.
Definition:
network.h:55
RSOCKETTYPE_IPX
Plain IPX.
Definition:
network.h:53
Generated by
1.8.12