#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "../compat/inttypes.h"
Go to the source code of this file.
Namespaces | |
namespace | oasys |
Classes | |
class | oasys::Intoa |
Class used to allow for safe concurrent calls to _intoa within an argument list. More... | |
Defines | |
#define | intoa(addr) oasys::Intoa(addr).buf() |
Wrapper macro to give the illusion that intoa() is a function call. | |
Functions | |
const char * | oasys::_intoa (u_int32_t addr, char *buf, size_t bufsize) |
Faster wrapper around inet_ntoa. | |
int | oasys::gethostbyname (const char *name, in_addr_t *addrp) |
Utility wrapper around the gethostbyname() system call. | |
u_int32_t | oasys::safe_ntohl (const char *bp) |
u_int16_t | oasys::safe_ntohs (const char *bp) |
void | oasys::safe_htonl (u_int32_t val, char *bp) |
void | oasys::safe_htons (u_int16_t val, char *bp) |
#define intoa | ( | addr | ) | oasys::Intoa(addr).buf() |
Wrapper macro to give the illusion that intoa() is a function call.
Which it is, really... or more accurately two inlined calls and one function call.
Definition at line 33 of file NetUtils.h.
Referenced by dtn::TCPConvergenceLayer::Connection::accept(), dtn::TCPConvergenceLayer::Listener::accepted(), dtn::APIServer::APIServer(), oasys::IPSocket::bind(), oasys::IPSocket::configure(), dtn::IPDiscovery::configure(), dtn::IPAnnounce::configure(), dtn::TCPConvergenceLayer::Connection::connect(), oasys::IPSocket::connect(), dtn::TCPConvergenceLayer::Connection::Connection(), dtn::UDPConvergenceLayer::dump_interface(), dtn::TCPConvergenceLayer::dump_interface(), dtn::UDPConvergenceLayer::dump_link(), dtn::TCPConvergenceLayer::dump_link(), oasys::InAddrOpt::get(), dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtn::TCPConvergenceLayer::Connection::handle_poll_activity(), dtn::UDPConvergenceLayer::Sender::init(), dtntunnel::TCPTunnel::kill_connection(), main(), dtntunnel::TCPTunnel::new_connection(), dtn::IPDiscovery::parse_advertisement(), dtntunnel::UDPTunnel::Listener::run(), dtn::UDPConvergenceLayer::Receiver::run(), dtntunnel::TCPTunnel::Connection::run(), oasys::TCPServerThread::run(), dtn::IPDiscovery::run(), dtn::APIClient::run(), dtn::DTND::run_console(), and oasys::SMTPServer::SMTPServer().