blob: 2f38b1d37d825987a13b6b2be7606ecc97cf6f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* -*- C++ -*- */
// $Id$
/* Handles INET broadcast datagram messages from remote hosts on the local subnet. */
#if !defined (_HANDLE_BROADCAST_H)
#define _HANDLE_BROADCAST_H
#include "ace/Service_Config.h"
#include "ace/Service_Types.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_Dgram.h"
class Handle_Broadcast : public ACE_Service_Object, public ACE_SOCK_Dgram
{
public:
Handle_Broadcast (void);
~Handle_Broadcast (void);
virtual int init (int argc, char *argv[]);
virtual int info (char **, size_t) const;
virtual int fini (void);
private:
int open (const ACE_INET_Addr &r, int async = 0);
virtual int get_handle (void) const;
virtual int handle_input (int fd);
virtual int handle_close (int fd, ACE_Reactor_Mask);
static unsigned short DEFAULT_PORT;
};
extern ACE_Service_Object_Type rb;
#if defined (__ACE_INLINE__)
#define ACE_INLINE inline
#include "Handle_Broadcast.i"
#else
#define ACE_INLINE
#endif /* __ACE_INLINE__ */
#endif /* _HANDLE_BROADCAST_H */
|