18 #ifndef SIGNAL_SENDER_HPP
19 #define SIGNAL_SENDER_HPP
21 #include <ndb_global.h>
22 #include "TransporterFacade.hpp"
23 #include "trp_client.hpp"
24 #include "NdbApiSignal.hpp"
27 #include <signaldata/TestOrd.hpp>
28 #include <signaldata/TamperOrd.hpp>
29 #include <signaldata/StartOrd.hpp>
30 #include <signaldata/ApiVersion.hpp>
31 #include <signaldata/ResumeReq.hpp>
32 #include <signaldata/SetLogLevelOrd.hpp>
33 #include <signaldata/EventSubscribeReq.hpp>
34 #include <signaldata/EventReport.hpp>
35 #include <signaldata/DumpStateOrd.hpp>
36 #include <signaldata/BackupSignalData.hpp>
37 #include <signaldata/AllocNodeId.hpp>
46 Uint8 trace, Uint16 recBlock, Uint16 gsn, Uint32 len);
51 int readSignalNumber()
const {
return header.readSignalNumber(); };
52 Uint32 *getDataPtrSend() {
return header.getDataPtrSend(); }
53 const Uint32 *getDataPtr()
const {
return header.
getDataPtr(); }
54 Uint32 getLength()
const {
return header.getLength(); }
60 bool isFirstFragment()
const {
return header.isFirstFragment(); }
61 bool isLastFragment()
const {
return header.isLastFragment(); };
62 Uint32 getFragmentId()
const {
return header.getFragmentId(); };
64 void print(FILE * out = stdout)
const;
79 Uint32 getOwnRef()
const;
81 NodeId find_confirmed_node(
const NodeBitmask& mask);
82 NodeId find_connected_node(
const NodeBitmask& mask);
85 SendStatus sendSignal(Uint16 nodeId,
const SimpleSignal *);
87 Uint16 recBlock, Uint16 gsn, Uint32 len);
88 int sendFragmentedSignal(Uint16 nodeId,
SimpleSignal& sig,
89 Uint16 recBlock, Uint16 gsn, Uint32 len);
91 Uint16 recBlock, Uint16 gsn, Uint32 len);
95 Uint32 get_an_alive_node()
const {
return theFacade->get_an_alive_node(); }
96 Uint32 getAliveNode()
const {
return get_an_alive_node(); }
97 bool get_node_alive(Uint32
n)
const {
return getNodeInfo(n).m_alive; }