IBR-DTNSuite 0.6

ibrcommon::lowpansocket Class Reference

#include <lowpansocket.h>

Inheritance diagram for ibrcommon::lowpansocket:
Collaboration diagram for ibrcommon::lowpansocket:

List of all members.

Classes

class  peer
class  SocketException

Public Member Functions

virtual ~lowpansocket ()
virtual void shutdown ()
int receive (char *data, size_t maxbuffer)
lowpansocket::peer getPeer (const std::string address, const unsigned int panid)

Protected Member Functions

 lowpansocket (u_char proto=0) throw (SocketException)

Static Protected Member Functions

static void getAddress (struct ieee802154_addr *ret, const vinterface &iface)

Protected Attributes

int _socket
struct sockaddr_ieee802154 _sockaddr

Detailed Description

Definition at line 19 of file lowpansocket.h.


Constructor & Destructor Documentation

ibrcommon::lowpansocket::~lowpansocket ( ) [virtual]

Definition at line 46 of file lowpansocket.cpp.

References shutdown().

Here is the call graph for this function:

ibrcommon::lowpansocket::lowpansocket ( u_char  proto = 0) throw (SocketException) [protected]

Definition at line 33 of file lowpansocket.cpp.

References AF_IEEE802154, bzero, IEEE802154_ADDR_SHORT, and PF_IEEE802154.


Member Function Documentation

void ibrcommon::lowpansocket::getAddress ( struct ieee802154_addr ret,
const vinterface iface 
) [static, protected]
lowpansocket::peer ibrcommon::lowpansocket::getPeer ( const std::string  address,
const unsigned int  panid 
)
int ibrcommon::lowpansocket::receive ( char *  data,
size_t  maxbuffer 
)

Definition at line 58 of file lowpansocket.cpp.

References _socket, and ibrcommon::recvfrom().

Referenced by dtn::net::LOWPANConvergenceLayer::operator>>().

Here is the call graph for this function:

void ibrcommon::lowpansocket::shutdown ( ) [virtual]

Definition at line 51 of file lowpansocket.cpp.

References _socket.

Referenced by dtn::net::LOWPANConvergenceLayer::componentDown(), and ~lowpansocket().


Member Data Documentation


The documentation for this class was generated from the following files: