summaryrefslogtreecommitdiff
path: root/ace/SOCK_CODgram.h
blob: 757c5a88f53fcdf3385f85684a4b67d1caaa8e89 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -*- C++ -*- */
// $Id$


// ============================================================================
//
// = LIBRARY
//    ace
// 
// = FILENAME
//    SOCK_CODgram.h
//
// = AUTHOR
//    Doug Schmidt 
// 
// ============================================================================

#if !defined (ACE_SOCK_CODGRAM_H)
#define ACE_SOCK_CODGRAM_H

#include "ace/SOCK_IO.h"
#include "ace/Addr.h"

class ACE_Export ACE_SOCK_CODgram : public ACE_SOCK_IO
{
  // = TITLE
  //     Defines the member functions for the ACE_SOCK connected
  //     datagram abstraction.
public:
  // = Initialization methods.
  ACE_SOCK_CODgram (void);
  // Default constructor.

  ACE_SOCK_CODgram (const ACE_Addr &remote_sap, 
		    const ACE_Addr &local_sap = ACE_Addr::sap_any, 
		    int protocol_family = PF_INET, 
		    int protocol = 0,
		    int reuse_addr = 0);

  ~ACE_SOCK_CODgram (void);
  // Default dtor.

  // Initiate a connected dgram.

  int open (const ACE_Addr &remote_sap, 
 	    const ACE_Addr &local_sap = ACE_Addr::sap_any, 
	    int protocol_family = PF_INET, 
	    int protocol = 0,
	    int reuse_addr = 0);
  // Initiate a connected dgram.

  void dump (void) const;
  // Dump the state of an object.

  ACE_ALLOC_HOOK_DECLARE;
  // Declare the dynamic allocation hooks.
};

#if !defined (ACE_LACKS_INLINE_FUNCTIONS)
#include "ace/SOCK_CODgram.i"
#endif

#endif /* ACE_SOCK_CODGRAM_H */