Free Electron
zeromq/ConnectionI.h
Go to the documentation of this file.
1 
2 /* Copyright (C) 2003-2021 Free Electron Organization
3  Any use of this software requires a license. If a valid license
4  was not distributed with this file, visit freeelectron.org. */
5 
6 /** @file */
7 
8 #ifndef __zeromq_ConnectionI_h__
9 #define __zeromq_ConnectionI_h__
10 
11 namespace fe
12 {
13 namespace ext
14 {
15 
16 /**************************************************************************//**
17  @brief Simple Network Connection
18 
19  @ingroup zeromq
20 *//***************************************************************************/
21 class FE_DL_EXPORT ConnectionI:
22  virtual public Component,
23  public CastableAs<ConnectionI>
24 {
25  public:
26 
27 virtual Result connect(String a_address,short a_port) =0;
28 virtual Result send(String a_message) =0;
29 virtual Result receive(String& a_rMessage) =0;
30 };
31 
32 } /* namespace ext */
33 } /* namespace fe */
34 
35 #endif /* __zeromq_ConnectionI_h__ */
kernel
Definition: namespace.dox:3
Result
Generalized return value indicating success or failure, and why.
Definition: Result.h:24