IPSocket.h File Reference

#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include "IO.h"
#include "../compat/inttypes.h"
#include "../debug/Log.h"

Go to the source code of this file.

Namespaces

namespace  oasys

Classes

class  oasys::IPSocket
 IPSocket is a base class that wraps a network socket. More...
struct  oasys::IPSocket::ip_socket_params
 Socket parameters are public fields that should be set after creating the socket but before the socket is used. More...

Defines

#define MAX_UDP_PACKET   65535
 The maximum length of a UDP packet.
#define INADDR_NONE   0


Define Documentation

#define INADDR_NONE   0

Definition at line 45 of file IPSocket.h.

Referenced by dtn::UDPConvergenceLayer::dump_interface(), dtntunnel::DTNTunnel::get_options(), oasys::gethostbyname(), dtn::UDPConvergenceLayer::Sender::init(), dtn::UDPConvergenceLayer::init_link(), dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), oasys::IPSocket::IPSocket(), oasys::IPSocket::local_addr(), dtn::UDPConvergenceLayer::open_contact(), dtn::TCPConvergenceLayer::parse_link_params(), dtn::TCPConvergenceLayer::parse_nexthop(), dtn::IPConvergenceLayerUtils::parse_nexthop(), dtn::IPConvergenceLayer::parse_nexthop(), oasys::IPSocket::remote_addr(), and dtn::UDPConvergenceLayer::UDPConvergenceLayer().

#define MAX_UDP_PACKET   65535

The maximum length of a UDP packet.

This isn't really accurate as a maximum payload size since it doesn't take into account the space for the IP header or the UDP header, but is a valid upper bound for the purposes of buffer allocation.

XXX/demmer is this in some system header somewhere?

Definition at line 42 of file IPSocket.h.

Referenced by dtn::UDPConvergenceLayer::Receiver::run().


Generated on Sat Sep 8 08:36:19 2007 for DTN Reference Implementation by  doxygen 1.5.3