skstream
Main Page
Classes
Files
File List
skstream
skserver_unix.h
1
/**************************************************************************
2
FreeSockets - Portable C++ classes for IP(sockets) applications. (v0.3)
3
Copyright (C) 2000-2001 Rafael Guterres Jeffman
4
(C) 2003-2006 Alistair Riddoch
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20
**************************************************************************/
21
29
#ifndef RGJ_FREE_THREADS_SERVER_UNIX_H_
30
#define RGJ_FREE_THREADS_SERVER_UNIX_H_
31
32
#include <skstream/skserver.h>
// FreeSockets are needed
33
34
#include <string>
35
37
// class unix_socket_server
39
class
unix_socket_server
:
public
basic_socket_server
{
40
public
:
41
unix_socket_server
() {
42
}
43
44
explicit
unix_socket_server
(
const
std::string & service) {
45
open(service);
46
}
47
48
// Destructor
49
virtual
~
unix_socket_server
();
50
51
SOCKET_TYPE accept();
52
53
int
open(
const
std::string & service);
54
};
55
56
#endif // RGJ_FREE_THREADS_SERVER_UNIX_H_
basic_socket_server
Base class for anything that encapsulates a listen socket.
Definition:
skserver.h:39
unix_socket_server
Definition:
skserver_unix.h:39
Generated on Sun Feb 21 2016 17:36:14 for skstream by
1.8.11