EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ipAddrToAsciiAsynchronous.h
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS Base is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 /*
12  * Author Jeffrey O. Hill
14  */
15 
16 #ifndef ipAddrToAsciiAsynchronous_h
17 #define ipAddrToAsciiAsynchronous_h
18 
19 #include "osiSock.h"
20 #include "libComAPI.h"
21 
22 class LIBCOM_API ipAddrToAsciiCallBack {
23 public:
24  virtual void transactionComplete ( const char * pHostName ) = 0;
25  virtual void show ( unsigned level ) const;
26  virtual ~ipAddrToAsciiCallBack () = 0;
27 };
28 
29 class LIBCOM_API ipAddrToAsciiTransaction {
30 public:
31  virtual void release () = 0;
32  virtual void ipAddrToAscii ( const osiSockAddr &, ipAddrToAsciiCallBack & ) = 0;
33  virtual osiSockAddr address () const = 0;
34  virtual void show ( unsigned level ) const = 0;
35 protected:
36  virtual ~ipAddrToAsciiTransaction () = 0;
37 };
38 
39 class LIBCOM_API ipAddrToAsciiEngine {
40 public:
41  virtual void release () = 0;
42  virtual ipAddrToAsciiTransaction & createTransaction () = 0;
43  virtual void show ( unsigned level ) const = 0;
44  static ipAddrToAsciiEngine & allocate ();
45 protected:
46  virtual ~ipAddrToAsciiEngine () = 0;
47 public:
48 #ifdef EPICS_PRIVATE_API
49  static void cleanup();
50 #endif
51 };
52 
53 #endif // ifdef ipAddrToAsciiAsynchronous_h