libassa 3.5.1
Loading...
Searching...
No Matches
UnConUDPSocket.h
Go to the documentation of this file.
1// -*- c++ -*-
2//------------------------------------------------------------------------------
3// UnConUDPSocket.h
4//------------------------------------------------------------------------------
5// Copyright (c) 1999 by Vladislav Grinchenko
6//
7// This library is free software; you can redistribute it and/or
8// modify it under the terms of the GNU Library General Public
9// License as published by the Free Software Foundation; either
10// version 2 of the License, or (at your option) any later version.
11//------------------------------------------------------------------------------
12// Created: 04/01/99
13//------------------------------------------------------------------------------
14#ifndef UNCONUPD_SOCKET_H
15#define UNCONUPD_SOCKET_H
16
17#include "assa/UDPSocket.h"
18
19namespace ASSA {
20
26class UnConUDPSocket : public UDPSocket {
27public:
30
33
44 int recvfrom (char* buf_, int size_, Address* peer_addr_);
45
57 int sendto (const char* buf_,
58 const unsigned int size_,
59 const Address* dest_addr_);
60
66 virtual int in_avail () const { return 0; }
67};
68
71{
72 trace_with_mask ("UnConUDPSocket::UnConUDPSocket", SOCKTRACE);
73}
74
77{
78 trace_with_mask ("UnConUDPSocket::~UnConUDPSocket", SOCKTRACE);
79}
80
81} // end namespace ASSA
82
83#endif // UNCONUPD_SOCKET_H
84
85
86
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
Definition Logger.h:437
Class UDPSocket is an implementation of UNIX domain socket that is the base class for more specialize...
A wrapper class to provide AutoPtr with reference semantics.
Definition AutoPtr.h:32
UnConUDPSocket()
Constructor.
int recvfrom(char *buf_, int size_, Address *peer_addr_)
recvfrom() function receives a message from connectionless-mode socket.
int sendto(const char *buf_, const unsigned int size_, const Address *dest_addr_)
sendto() function sends a message through connectionless-mode socket.
virtual int in_avail() const
This function returns the number of characters immediately available in the get area of the underly...
~UnConUDPSocket()
Destructor.
@ SOCKTRACE
Extended Socket & friends messages
Definition LogMask.h:42