OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConnectionInfo Struct Reference

#include <ConnectionInfo.h>

+ Collaboration diagram for ConnectionInfo:

Public Member Functions

std::string toString () const

Public Attributes

std::string address
ClientProtocol protocol

Detailed Description

Definition at line 25 of file ConnectionInfo.h.

Member Function Documentation

std::string ConnectionInfo::toString ( ) const

Definition at line 29 of file ConnectionInfo.h.

References address, HTTP, Other, protocol, TCP, and UNREACHABLE.

29  {
30  switch (protocol) {
32  return "tcp:" + address;
34  return "http:" + address;
36  return "Other";
37  }
39  return "";
40  }
Definition: Logger.h:338
std::string address
ClientProtocol protocol

Member Data Documentation

std::string ConnectionInfo::address

Definition at line 26 of file ConnectionInfo.h.

Referenced by toString().

ClientProtocol ConnectionInfo::protocol

Definition at line 27 of file ConnectionInfo.h.

Referenced by toString().

The documentation for this struct was generated from the following file: