Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::SimpleInfoResponse Struct Reference

Use a Buffer<SimpleInfoResponse> to send a SNIP response to a particular destination host. More...

#include <SimpleInfoProtocol.hxx>

Public Member Functions

void reset (const GenMessage *msg_to_respond, const SimpleInfoDescriptor *desc, Defs::MTI response_mti)
 Initializes the fields of this message to be a response to an NMRAnetMessage (i.e., flips destination and source from that message).
 

Public Attributes

Nodesrc
 Source node to send the response from.
 
Defs::MTI mti
 MTI of the response to be sent.
 
NodeHandle dst
 Destination node to send the response to.
 
const SimpleInfoDescriptordescriptor
 Descriptor of payload to send.
 

Detailed Description

Use a Buffer<SimpleInfoResponse> to send a SNIP response to a particular destination host.

Definition at line 52 of file SimpleInfoProtocol.hxx.

Constructor & Destructor Documentation

◆ SimpleInfoResponse()

openlcb::SimpleInfoResponse::SimpleInfoResponse ( )
inline

Definition at line 54 of file SimpleInfoProtocol.hxx.

Member Function Documentation

◆ reset()

void openlcb::SimpleInfoResponse::reset ( const GenMessage msg_to_respond,
const SimpleInfoDescriptor desc,
Defs::MTI  response_mti 
)
inline

Initializes the fields of this message to be a response to an NMRAnetMessage (i.e., flips destination and source from that message).

The descriptor array must end with an EOF entry and must stay alive so long as the message is not sent.

Definition at line 64 of file SimpleInfoProtocol.hxx.

Member Data Documentation

◆ descriptor

const SimpleInfoDescriptor* openlcb::SimpleInfoResponse::descriptor

Descriptor of payload to send.

Definition at line 81 of file SimpleInfoProtocol.hxx.

◆ dst

NodeHandle openlcb::SimpleInfoResponse::dst

Destination node to send the response to.

Definition at line 79 of file SimpleInfoProtocol.hxx.

◆ mti

Defs::MTI openlcb::SimpleInfoResponse::mti

MTI of the response to be sent.

Definition at line 77 of file SimpleInfoProtocol.hxx.

◆ src

Node* openlcb::SimpleInfoResponse::src

Source node to send the response from.

Definition at line 75 of file SimpleInfoProtocol.hxx.


The documentation for this struct was generated from the following file: