Write a packet to the open stream.
Namespace:
Bespoke.Robotics.BrainStemAssembly: 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
Exception | Condition |
---|---|
Bespoke.Robotics.BrainStem.Exceptions..::.StreamClosedException | Thrown if the stream is not open. |
Bespoke.Robotics.BrainStem.Exceptions..::.PacketDirectionException | Thrown if the specified packet's direction is not Packet.DirectionType.HostToStem. |