OmniSciDB  a5dc49c757
 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
inline

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  }
38  UNREACHABLE();
39  return "";
40  }
#define UNREACHABLE()
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: