TTCPStream Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
The TTCPStream class is an abstract class for communicating through the TCP protocol. The TZeroConfHubClient uses it as an opaque communication channel (via the abstract method TZeroConfHubClient.CreateTCPClient). Currently, the TROHubSynapseTCPClient class realizes a TTCPStream to provide a TZeroConfHubSynapseClient with a communication channel. You can supply your own implementation, if, for example, you need to use a different communication library.
Location
uROZeroConfStreamWorker.pas TTCPStream | Descendants
Properties
| Connected |
|---|
|
Reports if there is an active connection.
|
Instance Methods
| constructor Create virtual |
|---|
|
|
| destructor Destroy override |
|
|
| Connect virtual abstract |
|
Abstract method to establish a connection to AHost on port aPort.
|
| GetConnected protected virtual abstract |
|
Abstract method that reports all active connections.
|
| Read virtual abstract |
|
Abstract method to read Count bytes into the Buffer and return the number of bytes actually read.
|
| ReadExact |
|
Uses Read to read exactly Count bytes into the Buffer and return the number of bytes actually read. It may return a value less than Count if Connected becomes False while reading.
|
| Stop virtual abstract |
|
Abstract method to cancel all active data transferring.
|
| TryConnect virtual abstract |
|
Abstract method to establish a connection to AHost on port aPort in a non-blocking manner.
|
| Write virtual abstract |
|
Abstract method to write Count bytes from the Buffer and return the number of bytes actually written.
|
Descendants
See Also
- TZeroConfHubClient
- TROHubSynapseTCPClient
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript