8 #ifndef K_FIRESYNC_PX_PORT_H
9 #define K_FIRESYNC_PX_PORT_H
13 #include <kFireSync/Pipe/kPxPort.x.h>
68 return obj->direction;
92 obj->canAcceptForeignData = enable;
110 return obj->canAcceptForeignData;
138 obj->asynchronousDataEnabled = enable;
155 return obj->asynchronousDataEnabled;
178 obj->dropEnabled = enable;
196 return obj->dropEnabled;
230 return (kArrayList_Count(obj->connections) > 0);
246 return kQueue_Count(obj->messages);
Represents a kPxBlock port.
kMsgSource kPxPort_MessageSourceAt(kPxPort port, kSize index)
Accesses source information for a message enqueued on this input port.
Represents information about the source of a pipe message.
Definition: kNodeDef.h:2508
kBool kPxPort_AsynchronousDataEnabled(kPxPort port)
Reports whether an output port is configured to emit messages asynchronously.
Definition: kPxPort.h:151
kSize kPxPort_MessageCount(kPxPort port)
Count of enqueued input messages available on this input port.
Definition: kPxPort.h:242
const kChar * kPxPort_Name(kPxPort port)
Gets a descriptive name for the port.
Definition: kPxPort.h:48
kBool kPxPort_IsRouted(kPxPort port)
For an output port, reports whether the port is connected to any input ports.
Definition: kPxPort.h:226
k32u kPxPort_Id(kPxPort port)
Gets the unique numerical identifier for this port.
Definition: kPxPort.h:32
Essential declarations related to FireSync nodes.
Abstract base class for pipe block implementations.
kBool kPxPort_CanAcceptForeignData(kPxPort port)
Reports whether foreign data can be accepted by an input port.
Definition: kPxPort.h:106
kMsgSet kPxPort_MessageAt(kPxPort port, kSize index)
Accesses a message enqueued on this input port.
kPxBlock kPxPort_Block(kPxPort port)
Gets the block to which the port belongs.
Definition: kPxPort.h:208
kStatus kPxPort_AcceptForeignData(kPxPort port, kBool enable)
Enables an input port to accept foreign data.
Definition: kPxPort.h:88
#define kObj(TypeName_T, T_object)
kBool kPxPort_DropEnabled(kPxPort port)
Reports whether an output port is allowed to drop messages.
Definition: kPxPort.h:192
Represents the directionality of a block port.
kPortDirection kPxPort_Direction(kPxPort port)
Gets the directionality of the port (input vs.
Definition: kPxPort.h:64
kStatus kPxPort_RemoveMessage(kPxPort port, kMsgSet *message, kMsgSource *source)
Dequeues the next input message received on this input port.
Abstract base class for FireSync data messages.
kStatus kPxPort_EnableAsynchronousData(kPxPort port, kBool enable)
Enables an output port to emit messages asynchronously.
Definition: kPxPort.h:134
kStatus kPxPort_EnableDrop(kPxPort port, kBool enable)
Enables an output port to drop messages.
Definition: kPxPort.h:174