Click or drag to resize

DefaultSerialProtocol Class

[Missing <summary> documentation for "T:Brainboxes.IO.DefaultSerialProtocol"]

Inheritance Hierarchy
SystemObject
  Brainboxes.IOProtocol
    Brainboxes.IODefaultSerialProtocol

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
public class DefaultSerialProtocol : Protocol, 
	ISerialProtocol, IProtocol, ICloneable

The DefaultSerialProtocol type exposes the following members.

Constructors
  NameDescription
Public methodDefaultSerialProtocol
Initializes a new instance of the DefaultSerialProtocol class
Top
Properties
  NameDescription
Public propertyDataAvailable
Whether there is data available, returns 0 for no data and 1 more 1 or more characters
Public propertyEncoding
The uft8 character encoding used to send and receive data
Public propertyStream
Set the stream which the protocol data is written and read from
(Inherited from Protocol.)
Public propertyTerminatingCharacters
The character or sequence of characters that define the end of a data transmission, this will be automatically added to the end of sent data and stripped from the end of a received data The default terminating-character is \r CARRIAGE RETURN
Top
Methods
  NameDescription
Public methodClone
Make a shallow copy of the DefaultSerialProtocol This means when it is assigned to each port the instance is not shared so each port maintains its own state
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodReceive
Receive data from the serial port decoded in the set encoding Will block until: the timeout is reached in which case an exception is thrown or until the terminating character is found
Public methodSend
Send data down the serial port encoded in the set encoding
Public methodToString (Inherited from Object.)
Top
See Also