Client Class

Definition

The Client is what is used to send messages to a Host

This base Client has no implementation of actually connecting, a "communication layer" needs to be used, such as the TCPClient communication layer

In most normal cases, you will only have to use the generated proxy layer to interact with the Host

public abstract class Client : IDisposable
Inheritance
Client
Derived
VoltRpc.Communication.Pipes.PipesClient
VoltRpc.Communication.TCP.TCPClient
Implements

Constructors

Client(Int32)

Creates a new Client instance

Fields

DefaultBufferSize

The default size of the buffers

Properties

HasDisposed

Has this object been disposed

IsConnected

Is the Client connected

TypeReaderWriterManager

The TypeReaderWriterManager for Client

Methods

AddService(Type)

Tells the Client what interfaces you might be using

AddService<T>()

Tells the Client what interfaces you might be using

CheckDispose()

Checks the disposal state on this object

Connect()

Connects the Client to a host

Dispose()

Destroys the Client instance

Finalize()

Deconstructor for Client.

Tells the server that we have disconnected and releases resources if it hasn't been done by Dispose() already.

Initialize(BufferedReader, BufferedWriter)

Initialize streams

Initialize(Stream, Stream)

Initialize streams

InvokeMethod(String, Object[])

Invokes a method on the server

SetProtocolVersion(Object)

Sets what protocol version to use.

Set value to null to reset back to none.

Applies to