MPD
0.20.18
net
SocketUtil.hxx
Go to the documentation of this file.
1
/*
2
* Copyright 2003-2017 The Music Player Daemon Project
3
* http://www.musicpd.org
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
/*
21
* This library provides easy helper functions for working with
22
* sockets.
23
*
24
*/
25
26
#ifndef MPD_SOCKET_UTIL_HXX
27
#define MPD_SOCKET_UTIL_HXX
28
29
class
SocketAddress
;
30
46
int
47
socket_bind_listen
(
int
domain,
int
type,
int
protocol,
48
SocketAddress
address,
49
int
backlog);
50
51
int
52
socket_keepalive
(
int
fd);
53
54
#endif
SocketAddress
An OO wrapper for struct sockaddr.
Definition:
SocketAddress.hxx:46
socket_keepalive
int socket_keepalive(int fd)
socket_bind_listen
int socket_bind_listen(int domain, int type, int protocol, SocketAddress address, int backlog)
Creates a socket listening on the specified address.
Generated on Tue Apr 10 2018 16:34:38 for MPD by
1.8.14