Loading...
Searching...
No Matches
UnConUDPSocket.h
Go to the documentation of this file.
// -*- c++ -*-
//------------------------------------------------------------------------------
// UnConUDPSocket.h
//------------------------------------------------------------------------------
// Copyright (c) 1999 by Vladislav Grinchenko
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//------------------------------------------------------------------------------
// Created: 04/01/99
//------------------------------------------------------------------------------
#ifndef UNCONUPD_SOCKET_H
#define UNCONUPD_SOCKET_H
#include "assa/UDPSocket.h"
namespace ASSA {
class UnConUDPSocket : public UDPSocket {
public:
UnConUDPSocket();
~UnConUDPSocket();
int recvfrom (char* buf_, int size_, Address* peer_addr_);
int sendto (const char* buf_,
const unsigned int size_,
const Address* dest_addr_);
virtual int in_avail () const { return 0; }
};
UnConUDPSocket::
UnConUDPSocket () : UDPSocket()
{
trace_with_mask ("UnConUDPSocket::UnConUDPSocket", SOCKTRACE);
}
UnConUDPSocket::
~UnConUDPSocket()
{
trace_with_mask ("UnConUDPSocket::~UnConUDPSocket", SOCKTRACE);
}
} // end namespace ASSA
#endif // UNCONUPD_SOCKET_H
trace_with_mask
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
Definition Logger.h:437
UDPSocket.h
Class UDPSocket is an implementation of UNIX domain socket that is the base class for more specialize...
ASSA::Address
Definition Address.h:51
ASSA::UDPSocket::UDPSocket
UDPSocket()
Default constructor.
Definition UDPSocket.h:31
ASSA::UnConUDPSocket::UnConUDPSocket
UnConUDPSocket()
Constructor.
Definition UnConUDPSocket.h:70
ASSA::UnConUDPSocket::recvfrom
int recvfrom(char *buf_, int size_, Address *peer_addr_)
recvfrom() function receives a message from connectionless-mode socket.
Definition UnConUDPSocket.cpp:25
ASSA::UnConUDPSocket::sendto
int sendto(const char *buf_, const unsigned int size_, const Address *dest_addr_)
sendto() function sends a message through connectionless-mode socket.
Definition UnConUDPSocket.cpp:60
ASSA::UnConUDPSocket::in_avail
virtual int in_avail() const
This function returns the number of characters immediately available in the get area of the underly...
Definition UnConUDPSocket.h:66
ASSA::UnConUDPSocket::~UnConUDPSocket
~UnConUDPSocket()
Destructor.
Definition UnConUDPSocket.h:76
ASSA
Definition Acceptor.h:40
ASSA::SOCKTRACE
@ SOCKTRACE
Extended Socket & friends messages.
Definition LogMask.h:42