libutil++  1.9.3
 All Classes Functions Variables
UnixSocket.cpp
1 /*
2 ** libutil++
3 ** $Id: UnixSocket.cpp 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 static const char rcsid[] __attribute__((used)) = "$Id: UnixSocket.cpp 1653 2016-02-28 19:54:59Z sella $";
10 
11 #include "UnixSocket.h"
12 
13 #include <sys/types.h>
14 #include <sys/socket.h>
15 #include <string.h>
16 
17 using namespace sella::net;
18 
19 UnixSocket::UnixSocket(int s) throw (SocketException) : Socket(s) {
20 }
21 
22 UnixSocket::~UnixSocket() {
23 }
24 
25 const UnixSocket::shared UnixSocket::shared_ptr(int s) throw (SocketException) {
26  return std::make_shared<UnixSocket>(s);
27 }
28 
29 /*
30 ** vim: noet ts=3 sw=3
31 */