00001
00002
00003
00004
00005
00006
00007
00008
00009 static const char rcsid[] __attribute__((used)) = "$Id: RawSocket.cpp 1197 2014-10-14 22:26:11Z sella $";
00010
00011 #include "RawSocket.h"
00012
00013 #include <sys/types.h>
00014 #include <sys/socket.h>
00015 #include <string.h>
00016
00017 using namespace sella::net;
00018
00019 RawSocket::RawSocket(int family, int protocol) throw (SocketException) : Socket(family, SOCK_RAW, protocol) {
00020 }
00021
00022 RawSocket::~RawSocket() {
00023 }
00024
00025 const RawSocket::shared RawSocket::shared_ptr(int family, int protocol) throw (SocketException) {
00026 return std::make_shared<RawSocket>(family, protocol);
00027 }
00028
00029
00030
00031