MySQL 5.6.14 Source Code Document
|
Protected Member Functions | |
virtual bool | connect_server_impl (NDB_SOCKET_TYPE sockfd) |
virtual bool | connect_client_impl (NDB_SOCKET_TYPE sockfd) |
bool | connect_common (NDB_SOCKET_TYPE sockfd) |
virtual void | disconnectImpl () |
Protected Member Functions inherited from Transporter | |
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 int | pre_connect_options (NDB_SOCKET_TYPE sockfd) |
TransporterCallback * | get_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) |
Friends | |
class | TransporterRegistry |
class | Loopback_Transporter |
Additional Inherited Members | |
Public Member Functions inherited from Transporter | |
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 Attributes inherited from Transporter | |
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 |
TransporterRegistry & | m_transporter_registry |
Definition at line 45 of file TCP_Transporter.hpp.
|
protectedvirtual |
Setup client/server and perform connect/accept Is used both by clients and servers A client connects to the remote server A server accepts any new connections
Implements Transporter.
Definition at line 143 of file TCP_Transporter.cpp.
|
protectedvirtual |
Disconnects a TCP/IP node. Empty receivebuffer.
Implements Transporter.
Definition at line 445 of file TCP_Transporter.cpp.