Write a packet to the open stream.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public void WritePacket(
	Packet packet
)
Visual Basic (Declaration)
Public Sub WritePacket ( _
	packet As Packet _
)
Visual C++
public:
void WritePacket(
	Packet^ packet
)

Parameters

packet
Type: Bespoke.Robotics.BrainStem..::.Packet
The packet to write.

Exceptions

ExceptionCondition
Bespoke.Robotics.BrainStem.Exceptions..::.StreamClosedExceptionThrown if the stream is not open.
Bespoke.Robotics.BrainStem.Exceptions..::.PacketDirectionExceptionThrown if the specified packet's direction is not Packet.DirectionType.HostToStem.

See Also