18 #ifndef TransporterDefinitions_H
19 #define TransporterDefinitions_H
21 #include <ndb_global.h>
22 #include <kernel_types.h>
29 const int MAX_NTRANSPORTERS = 256;
34 const int TCP_SEND_LIMIT = 64000;
39 SEND_DISCONNECTED = 2,
41 SEND_MESSAGE_TOO_BIG = 4,
45 enum TransporterType {
46 tt_TCP_TRANSPORTER = 1,
47 tt_SCI_TRANSPORTER = 2,
48 tt_SHM_TRANSPORTER = 3
67 const Uint32 MAX_RECV_MESSAGE_BYTESIZE = 32768;
68 const Uint32 MAX_SEND_MESSAGE_BYTESIZE = 32768;
78 const char *remoteHostName;
79 const char *localHostName;
91 Uint32 sendBufferSize;
92 Uint32 maxReceiveSize;
96 Uint32 tcpOverloadLimit;
109 Uint32 nLocalAdapters;
111 Uint32 remoteSciNodeId0;
112 Uint32 remoteSciNodeId1;
118 Uint32 theVerId_signalNumber;
119 Uint32 theReceiversBlockNumber;
120 Uint32 theSendersBlockRef;
122 Uint32 theSendersSignalId;
125 Uint8 m_noOfSections;
126 Uint8 m_fragmentInfo;
140 void setNull() { p = 0;}
141 bool isNull()
const {
return p == 0;}
153 :sz(sz_arg),
i(i_arg), p(p_arg)
156 :sz(src.sz),
i(src.i), p(src.p)
159 void setNull() { p = 0;}
160 bool isNull()
const {
return p == 0;}
178 virtual void reset()=0;
179 virtual const Uint32* getNextWords(Uint32& sz)=0;
187 class NdbOut & operator <<(
class NdbOut & out,
SignalHeader & sh);
189 #endif // Define of TransporterDefinitions_H