IBR-DTNSuite
0.8
|
#include <lowpansocket.h>
Classes | |
class | peer |
class | SocketException |
Public Member Functions | |
virtual | ~lowpansocket () |
virtual void | shutdown () |
int | receive (char *data, size_t maxbuffer) |
lowpansocket::peer | getPeer (unsigned int address, const unsigned int panid) |
Static Public Member Functions | |
static void | getAddress (struct ieee802154_addr *ret, const vinterface &iface) |
Protected Member Functions | |
lowpansocket (u_char proto=0) throw (SocketException) | |
Protected Attributes | |
ibrcommon::vsocket | _vsocket |
struct sockaddr_ieee802154 | _sockaddr |
Definition at line 20 of file lowpansocket.h.
ibrcommon::lowpansocket::~lowpansocket | ( | ) | [virtual] |
Definition at line 51 of file lowpansocket.cpp.
References shutdown().
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.
void ibrcommon::lowpansocket::getAddress | ( | struct ieee802154_addr * | ret, |
const vinterface & | iface | ||
) | [static] |
Definition at line 116 of file lowpansocket.cpp.
References ieee802154_addr::addr_type, IEEE802154_ADDR_SHORT, IEEE802154_ATTR_DEV_NAME, IEEE802154_ATTR_MAX, IEEE802154_ATTR_PAN_ID, IEEE802154_ATTR_SHORT_ADDR, IEEE802154_LIST_IFACE, ieee802154_policy, ieee802154_addr::pan_id, ieee802154_addr::short_addr, and ibrcommon::vinterface::toString().
Referenced by ibrcommon::UnicastSocketLowpan::bind(), dtn::net::LOWPANDatagramService::getServiceDescription(), dtn::net::LOWPANConvergenceLayer::send_cb(), and dtn::net::LOWPANConvergenceLayer::update().
lowpansocket::peer ibrcommon::lowpansocket::getPeer | ( | unsigned int | address, |
const unsigned int | panid | ||
) |
Definition at line 108 of file lowpansocket.cpp.
References sockaddr_ieee802154::addr, and ieee802154_addr::short_addr.
Referenced by dtn::net::LOWPANConvergenceLayer::send_cb().
int ibrcommon::lowpansocket::receive | ( | char * | data, |
size_t | maxbuffer | ||
) |
Definition at line 61 of file lowpansocket.cpp.
References _vsocket, ibrcommon::recvfrom(), and ibrcommon::vsocket::select().
Referenced by dtn::net::LOWPANConvergenceLayer::componentRun().
void ibrcommon::lowpansocket::shutdown | ( | ) | [virtual] |
Definition at line 56 of file lowpansocket.cpp.
References _vsocket, and ibrcommon::vsocket::close().
Referenced by dtn::net::LOWPANConvergenceLayer::__cancellation(), dtn::net::LOWPANDatagramService::shutdown(), and ~lowpansocket().
struct sockaddr_ieee802154 ibrcommon::lowpansocket::_sockaddr [protected] |
Definition at line 56 of file lowpansocket.h.
Referenced by ibrcommon::UnicastSocketLowpan::bind().
ibrcommon::vsocket ibrcommon::lowpansocket::_vsocket [protected] |
Definition at line 55 of file lowpansocket.h.
Referenced by ibrcommon::UnicastSocketLowpan::bind(), receive(), and shutdown().