Class SyncClientTransport
Provides client-side functionality for synchronous communication pattern based on TCP blocking sockets and Slim serializer for maximum serialization performance and lowest latency. The SyncBinding is usable for interconnection between Azos-native components on LANs (i.e. server clusters) in scenarios when low latency is more important than total call invocation throughput
Inheritance
System.Object
SyncClientTransport
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Glue.Native
Assembly: Azos.dll
Syntax
public class SyncClientTransport : ClientTransport<SyncBinding>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider
Constructors
SyncClientTransport(SyncBinding, Node)
Declaration
public SyncClientTransport(SyncBinding binding, Node node)
Parameters
Type | Name | Description |
---|---|---|
SyncBinding | binding | |
Node | node |
Methods
DoDecodeResponse(WireFrame, MemoryStream)
Decode the ResponseMsg per fame.Format, ms.Position is set after frame
Declaration
protected virtual ResponseMsg DoDecodeResponse(WireFrame frame, MemoryStream ms)
Parameters
Type | Name | Description |
---|---|---|
WireFrame | frame | |
System.IO.MemoryStream | ms |
Returns
Type | Description |
---|---|
ResponseMsg |
DoEncodeRequest(MemoryStream, RequestMsg)
Encode the RequestMsg per FrameFormat, ms.Position is set after frame
Declaration
protected virtual void DoEncodeRequest(MemoryStream ms, RequestMsg msg)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | ms | |
RequestMsg | msg |
DoSendRequest(ClientEndPoint, RequestMsg, CallOptions)
Declaration
protected override CallSlot DoSendRequest(ClientEndPoint endpoint, RequestMsg request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ClientEndPoint | endpoint | |
RequestMsg | request | |
CallOptions | options |
Returns
Type | Description |
---|---|
CallSlot |
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Implements
System.IDisposable