Commotion Wireless
About
Blog
Documentation
Download
For Organizers
For Developers
- API Reference - commotiond
Main Page
Related Pages
Classes
Files
File List
File Members
plugins
serval-dna
net.h
Go to the documentation of this file.
1
/**
2
* @file net.h
3
* @brief minimal Serval MDP client functionality, used in the
4
* commotion_serval-sas library
5
*
6
* @author Dan Staples (dismantl), danstaples@opentechinstitute.org
7
*
8
* @internal
9
* Created 12/18/2013
10
* Compiler gcc/g++
11
* Company The Open Technology Institute
12
* Copyright Copyright (c) 2013, Dan Staples
13
*
14
* This file is part of Commotion, Copyright (c) 2013, Josh King
15
*
16
* Commotion is free software: you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published
18
* by the Free Software Foundation, either version 3 of the License,
19
* or (at your option) any later version.
20
*
21
* Commotion is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
25
*
26
* You should have received a copy of the GNU General Public License
27
* along with Commotion. If not, see <http://www.gnu.org/licenses/>.
28
*
29
* =====================================================================================
30
*/
31
32
/*
33
* Copyright (C) 2012 Serval Project Inc.
34
*
35
* This program is free software; you can redistribute it and/or
36
* modify it under the terms of the GNU General Public License
37
* as published by the Free Software Foundation; either version 2
38
* of the License, or (at your option) any later version.
39
*
40
* This program is distributed in the hope that it will be useful,
41
* but WITHOUT ANY WARRANTY; without even the implied warranty of
42
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
* GNU General Public License for more details.
44
*
45
* You should have received a copy of the GNU General Public License
46
* along with this program; if not, write to the Free Software
47
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48
*/
49
50
#ifndef __CO_SERVAL_NET_H
51
#define __CO_SERVAL_NET_H
52
53
int
__set_block(
int
fd);
54
int
__set_nonblock(
int
fd);
55
ssize_t __recvwithttl(
int
sock,
unsigned
char
*buffer,
size_t
bufferlen,
int
*ttl,
56
struct
sockaddr *recvaddr, socklen_t *recvaddrlen);
57
58
59
#endif // __NET_H
Generated on Fri Jun 6 2014 13:22:05 for commotiond by
1.8.7