MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Transporter Class Reference
Inheritance diagram for Transporter:
Collaboration diagram for Transporter:

Public Member Functions

virtual bool initTransporter ()=0
virtual ~Transporter ()
virtual bool connect_client ()
bool connect_client (NDB_SOCKET_TYPE sockfd)
bool connect_server (NDB_SOCKET_TYPE socket, BaseString &errormsg)
virtual void doDisconnect ()
bool isConnected () const
NodeId getRemoteNodeId () const
NodeId getLocalNodeId () const
int get_s_port ()
void set_s_port (int port)
void update_status_overloaded (Uint32 used)
virtual int doSend ()=0
bool has_data_to_send ()
Uint32 get_max_send_buffer ()

Protected Member Functions

 Transporter (TransporterRegistry &, TransporterType, const char *lHostName, const char *rHostName, int s_port, bool isMgmConnection, NodeId lNodeId, NodeId rNodeId, NodeId serverNodeId, int byteorder, bool compression, bool checksum, bool signalId, Uint32 max_send_buffer)
virtual bool configure (const TransporterConfiguration *conf)
virtual bool configure_derived (const TransporterConfiguration *conf)=0
virtual bool connect_server_impl (NDB_SOCKET_TYPE sockfd)=0
virtual bool connect_client_impl (NDB_SOCKET_TYPE sockfd)=0
virtual int pre_connect_options (NDB_SOCKET_TYPE sockfd)
virtual void disconnectImpl ()=0
TransporterCallbackget_callback_obj ()
void do_disconnect (int err)
void report_error (enum TransporterError err, const char *info=0)
Uint32 fetch_send_iovec_data (struct iovec dst[], Uint32 cnt)
void iovec_data_sent (int nBytesSent)

Protected Attributes

char remoteHostName [256]
char localHostName [256]
struct in_addr remoteHostAddress
struct in_addr localHostAddress
int m_s_port
const NodeId remoteNodeId
const NodeId localNodeId
const bool isServer
unsigned createIndex
int byteOrder
bool compressionUsed
bool checksumUsed
bool signalIdUsed
Packer m_packer
Uint32 m_max_send_buffer
Uint32 m_overload_limit
Uint32 m_os_max_iovec
Uint32 m_timeOutMillis
bool m_connected
TransporterType m_type
TransporterRegistrym_transporter_registry

Friends

class TransporterRegistry

Detailed Description

Definition at line 35 of file Transporter.hpp.

Constructor & Destructor Documentation

Transporter::~Transporter ( )
virtual

Destructor

Definition at line 106 of file Transporter.cpp.

Member Function Documentation

bool Transporter::connect_client ( )
virtual

None blocking Use isConnected() to check status

Definition at line 158 of file Transporter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool Transporter::connect_server_impl ( NDB_SOCKET_TYPE  sockfd)
protectedpure virtual

Blocking, for max timeOut milli seconds Returns true if connect succeded

Implemented in SCI_Transporter, TCP_Transporter, and SHM_Transporter.

virtual void Transporter::disconnectImpl ( )
protectedpure virtual

Blocking

Implemented in SCI_Transporter, TCP_Transporter, and SHM_Transporter.

Here is the caller graph for this function:

void Transporter::doDisconnect ( )
virtual

Blocking

Definition at line 283 of file Transporter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Uint32 Transporter::fetch_send_iovec_data ( struct iovec  dst[],
Uint32  cnt 
)
inlineprotected

Get data to send (in addition to data possibly remaining from previous partial send).

Definition at line 217 of file Transporter.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Transporter::get_s_port ( )
inline

Get port we're connecting to (signed)

Definition at line 76 of file Transporter.hpp.

Here is the caller graph for this function:

NodeId Transporter::getLocalNodeId ( ) const
inline

Local (own) Node Id

Definition at line 207 of file Transporter.hpp.

Here is the caller graph for this function:

NodeId Transporter::getRemoteNodeId ( ) const
inline

Remote Node Id

Definition at line 201 of file Transporter.hpp.

Here is the caller graph for this function:

bool Transporter::isConnected ( ) const
inline

Are we currently connected

Definition at line 195 of file Transporter.hpp.

Here is the caller graph for this function:

void Transporter::set_s_port ( int  port)
inline

Set port to connect to (signed)

Definition at line 81 of file Transporter.hpp.

Here is the caller graph for this function:

Member Data Documentation

char Transporter::remoteHostName[256]
protected

Remote host name/and address

Definition at line 140 of file Transporter.hpp.


The documentation for this class was generated from the following files: