|
MySQL 5.6.14 Source Code Document
|
#include <SHM_Transporter.hpp>


Public Member Functions | |
| SHM_Transporter (TransporterRegistry &, const char *lHostName, const char *rHostName, int r_port, bool isMgmConnection, NodeId lNodeId, NodeId rNodeId, NodeId serverNodeId, bool checksum, bool signalId, key_t shmKey, Uint32 shmSize) | |
| virtual | ~SHM_Transporter () |
| virtual bool | configure_derived (const TransporterConfiguration *conf) |
| bool | initTransporter () |
| void | getReceivePtr (Uint32 **ptr, Uint32 **eod) |
| void | updateReceivePtr (Uint32 *ptr) |
Public Member Functions inherited from Transporter | |
| 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) |
| bool | has_data_to_send () |
| Uint32 | get_max_send_buffer () |
Protected Member Functions | |
| void | disconnectImpl () |
| 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) |
| bool | ndb_shm_create () |
| bool | ndb_shm_get () |
| bool | ndb_shm_attach () |
| bool | checkConnected () |
| void | setupBuffers () |
| int | doSend () |
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 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) |
Protected Attributes | |
| int | m_remote_pid |
| Uint32 | m_signal_threshold |
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 |
Friends | |
| class | TransporterRegistry |
class SHMTransporter
Definition at line 34 of file SHM_Transporter.hpp.
|
virtual |
SHM destructor
Definition at line 81 of file SHM_Transporter.cpp.

|
protected |
Check if there are two processes attached to the segment (a connection)
Definition at line 71 of file SHM_Transporter.unix.cpp.

|
protectedvirtual |
Blocking
| timeOutMillis | - the time to sleep before (ms) trying again. |
Implements Transporter.
Definition at line 279 of file SHM_Transporter.cpp.
|
protectedvirtual |
Blocking
| timeOutMillis | - the time to sleep before (ms) trying again. |
Implements Transporter.
Definition at line 213 of file SHM_Transporter.cpp.
|
protectedvirtual |
disconnect a segmnet
Implements Transporter.
Definition at line 105 of file SHM_Transporter.unix.cpp.
|
protectedvirtual |
doSend (i.e signal receiver)
Implements Transporter.
Definition at line 376 of file SHM_Transporter.cpp.

|
virtual |
|
protected |
Initialises the SHM_Reader and SHM_Writer on the segment
NOTE: There is 7th shared variable in Win2k (sharedCountAttached).
Definition at line 93 of file SHM_Transporter.cpp.