BaseStation.ItemDescriber Namespace
CAS.DataPorter.Configurator Namespace
CAS.Lib.CommonBus Namespace
CAS.Lib.CommonBus.ApplicationLayer Namespace
CAS.Lib.CommonBus.CommunicationLayer Namespace
CAS.Lib.DeviceSimulator Namespace
CAS.NetworkConfigLib Namespace
Object-Oriented Internet Process-Observer

ICommunicationLayer..::..GetChar Method (Byte%, Int32)

Get the next character from the receiving stream.

Namespace:  CAS.Lib.CommonBus.CommunicationLayer
Assembly:  CommServer.CommonBus (in CommServer.CommonBus.dll)

Syntax


TGetCharRes GetChar(
	out byte lastChr,
	int millisecondsTimeout
)
Function GetChar ( _
	<OutAttribute> ByRef lastChr As Byte, _
	millisecondsTimeout As Integer _
) As TGetCharRes
TGetCharRes^ GetChar(
	[OutAttribute] unsigned char^% lastChr, 
	int^ millisecondsTimeout
)

Parameters

lastChr
Type: Byte%
The character or 0 if timeout
millisecondsTimeout
Type: Int32
The number of milliseconds to wait for the character.

Return Value

Success: Operation accomplished successfully Timeout: Data is unavailable because of a communication error – loss of communication with a station DisInd: Disconnect indication – connection has been shut down remotely or lost because of communication error. Data is unavailable