Send the packet to a 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 virtual void Send( Stream stream ) |
Visual Basic (Declaration) |
---|
Public Overridable Sub Send ( _ stream As Stream _ ) |
Visual C++ |
---|
public: virtual void Send( Stream^ stream ) |
Parameters
- stream
- Type: Bespoke.Robotics.BrainStem..::.Stream
The stream to send the packet on.
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. |