IpTcpClientChannel Class

This is a Library topic for RemObjects SDK for .NET
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Contents |
Overview
The IpTcpClientChannel class inherits from ClientChannel to provide client communication via raw TCP connections based on Internet Pack's TcpClient.
Location
- Assembly: RemObjects.SDK.dll
- Namespace: RemObjects.SDK
- Ancestry: System.ComponentModel.Component | Channel | ClientChannel | IpClientChannel | IpTcpClientChannel
Implemented interfaces
Constants
| URL_SCHEMES_NOT_SUPPORTED protected (declared in ClientChannel) |
|---|
|
|
Properties
| Busy (declared in ClientChannel) |
|---|
|
Busy is true if the transport channel is currently busy with an operation. Otherwise Busy is false. By default, if the transport channel is busy, it will not attempt to process another request and a ChannelBusyException exception is raised if you try to do so.
|
| HasAfterReceiveStream protected (declared in Channel) |
|
|
| HasBeforeSendStream protected (declared in Channel) |
|
|
| HasOnTransferProgress protected (declared in ClientChannel) |
|
|
| Hostname |
|
The host name or IP address of the server.
|
| KeepAlive |
|
Controls whether to use HTTP Keep-Alive to keep the connection alive between requests.
|
| Port |
|
The port number of the server. The default port for the RemObjects SDK TCP Servers is port 8090.
|
| TargetUri |
|
|
| TargetUrl (declared in ClientChannel) |
|
|
| TcpClient |
|
Provides access to the underlying Internet Pack TcpClient component that will be used for the communication with the server.
|
| Timeout |
|
Specified the timeout, in seconds, after which the client channel will abort the request. This ensures that for unresponsive servers, the client will not hang indefinitely waiting for a reply. The Default value is 60 (seconds, i.e. 1 minute).
|
| TimeoutEnabled |
|
Specifies whether the client channel will timeout waiting for a request if no data is received over the connection for the amount of time specified in the Timeout property.
|
Class Methods
| BuildTargetUri protected (declared in ClientChannel) |
|---|
|
|
| ChannelMatchingTargetUri (String): IClientChannel (declared in ClientChannel) |
|
|
| ChannelMatchingTargetUri (Uri): IClientChannel (declared in ClientChannel) |
|
|
Instance Methods
| constructor |
|---|
|
|
| AsyncDispatch (declared in ClientChannel) |
|
|
| BeforeDispatch protected (declared in ClientChannel) |
|
|
| BeginDispatch (IMessage, AsyncCallback, Boolean, Object): IClientAsyncResult protected (declared in ClientChannel) |
|
|
| BeginDispatch (IMessage, AsyncCallback, Object): IClientAsyncResult (declared in ClientChannel) |
|
|
| CheckChannelBusy protected (declared in ClientChannel) |
|
|
| Clone |
|
|
| CopyProperties (Channel) protected (declared in Channel) |
|
|
| CopyProperties (ClientChannel) protected |
|
|
| Dispatch (declared in ClientChannel) |
|
The implementation of IClientChannel.Dispatch. This method ensures the transport is not busy before calling IntDispatch and passing the given IMessage. If the transport is busy, a ChannelBusyException is thrown.
|
| Dispose protected |
|
|
| EndDispatch (declared in ClientChannel) |
|
|
| HookUpConnectionEvents protected (declared in IpClientChannel) |
|
If the HasOnTransferEvents property returns true (which means that the OnTransferProgress event handler is defined), this method assigns the OnBytesSend and OnBytesReceived event handlers to the corresponding events of the provided Connection. This method adds events routing from the underlying Connection to this ClientChannel instance. It is called when a concrete implementation of the ClientChannel performs network operations like dispatching a request to the server.
|
| IntDispatch protected |
|
|
| OnBytesReceived protected (declared in IpClientChannel) |
|
This method acts as event handler for the Connection actually performing the network operations. It is added and removed via HookUpConnectionEvents and UnhookConnectionEvents. This method routes the received event by calling the TriggerOnTransferProgress method, which raises the OnTransferProgress event of the ClientChannel class.
|
| OnBytesSent protected (declared in IpClientChannel) |
|
This method acts as event handler for the Connection actually performing the network operations. It is added and removed via HookUpConnectionEvents and UnhookConnectionEvents. This method routes the received event by calling the TriggerOnTransferProgress method, which raises the OnTransferProgress event of the ClientChannel class.
|
| TriggerAfterReceiveStream protected (declared in Channel) |
|
|
| TriggerBeforeSendStream protected (declared in Channel) |
|
|
| TriggerOnException protected (declared in ClientChannel) |
|
|
| TriggerOnLoginNeeded protected (declared in ClientChannel) |
|
|
| TriggerOnTransferEnd protected (declared in ClientChannel) |
|
|
| TriggerOnTransferProgress protected (declared in ClientChannel) |
|
|
| TriggerOnTransferStart protected (declared in ClientChannel) |
|
|
| UnhookConnectionEvents protected (declared in IpClientChannel) |
|
Removes event handlers previously added via the HookUpConnectionEvents method.
|
Events
| AfterReceiveStream (declared in Channel) |
|---|
|
This event is triggered by client and server channels directly after a request or response stream has been received and before the stream gets parsed into a message. User code can assign handlers to this event to process, inspect or modify incoming messages, before they get handled by the RemObjects SDK framework. The passed Stream is a MemoryStream and may be modified. If no handlers are assigned to the AfterReceiveStream event, the message will load the data directly from the incoming medium (usually the network stream); assigning event handlers to AfterReceiveStream will induce a slight overhead as the data will first be copied into a local memory buffer for the event handler. This should not have any noticeably effect except for very large messages or on resource-limited systems such as Compact Framework Clients, but if utmost performance is important, take this note into consideration.
C#: event StreamEventHandler AfterReceiveStream VB: Event AfterReceiveStream As StreamEventHandler
|
| BeforeSendStream (declared in Channel) |
|
This event is triggered by client and server channels directly before a request or response stream will be sent over the network. User code can assign handlers to this event to process, inspect or modify incoming messages before they get sent out to the remote system. The passed Stream is a MemoryStream and may be modified.
C#: event StreamEventHandler BeforeSendStream VB: Event BeforeSendStream As StreamEventHandler
|
| OnException (declared in ClientChannel) |
|
This event is raised if an exception occurs during the execution of a remote request through the channel. The event will be raised both for exceptions originating from the server and for exceptions during communication (such as unavailability of the server). Attach a handler to this event to do custom handling of events without having to reply on explicit try/catch blocks in the calling code.
C#: event RequestExceptionEventHandler OnException VB: Event OnException As RequestExceptionEventHandler
|
| OnLoginNeeded (declared in ClientChannel) |
|
This event is raised if an SessionNotFoundException occurs during the execution of a remote request through the channel. The event gives you the opportunity to perform a login on the server (for example by calling a custom Login method, and then retry the call by setting the EventArgs' LoginSuccessful property to true. This way, your client can recover from a timed-out session to automatically logging in again, without the calling code having to consider the handling of SessionNotFoundExceptions manually.
C#: event LoginNeededEventHandler OnLoginNeeded VB: Event OnLoginNeeded As LoginNeededEventHandler
|
| OnTransferEnd (declared in ClientChannel) |
|
This event is triggered by the client channel after a transfer is completed (either the sending of a request or the receiving of a response).
C#: event TransferEndEventHandler OnTransferEnd VB: Event OnTransferEnd As TransferEndEventHandler
|
| OnTransferProgress (declared in ClientChannel) |
|
This event is triggered by the client channel during a transfer (either the sending of a request or the receiving of a response) whenever a new block of data has been sent or received.
C#: event TransferProgressEventHandler OnTransferProgress VB: Event OnTransferProgress As TransferProgressEventHandler
|
| OnTransferStart (declared in ClientChannel) |
|
This event is triggered by the client channel when a transfer (either the sending of a request or the receiving of a response) is about to be started.
C#: event TransferStartEventHandler OnTransferStart VB: Event OnTransferStart As TransferStartEventHandler |
See Also
- Lists
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Delphi: Interfaces — Classes — 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