TCPHost Class

Definition

A Host that uses TCP to communicate

public sealed class TCPHost : VoltRpc.Communication.Host
Inheritance
TCPHost

Constructors

TCPHost(IPEndPoint, ILogger, Int32, Int32, Int32)

Creates a new TCPHost instance

TCPHost(IPEndPoint, ILogger, Int32, Int32)

Creates a new TCPHost instance

TCPHost(IPEndPoint, ILogger)

Creates a new TCPHost instance

TCPHost(IPEndPoint, Int32, Int32, Int32)

Creates a new TCPHost instance

TCPHost(IPEndPoint, Int32, Int32)

Creates a new TCPHost instance

Fields

BufferSize

This size of the buffer

(Inherited from Host)
DefaultBufferSize

The default size of the buffers

(Inherited from Host)
DefaultReceiveTimeout

Default receive timeout time

DefaultSendTimeout

Default send timeout time

Logger

Logger

(Inherited from Host)

Properties

ConnectionCount

Count of number of connections

(Inherited from Host)
HasDisposed

Has this object been disposed

(Inherited from Host)
HideStacktrace

Hides the stacktrace from the client when an Exception is thrown

(Inherited from Host)
IsRunning

Is the Host running?

(Inherited from Host)
MaxConnectionsCount

What is the maximum amount of connections

(Inherited from Host)
TypeReaderWriterManager

The TypeReaderWriterManager for Host

(Inherited from Host)

Methods

AddService(Type, Object)

Adds a service to this Host

(Inherited from Host)
AddService<T>(T)

Adds a service to this Host

(Inherited from Host)
CheckDispose()

Checks if the object has been disposed

(Inherited from Host)
Dispose()

Destroys the Host instance

ProcessRequest(BufferedReader, BufferedWriter)

Processes a request from a client

You should only call this if you need to provide a custom BufferedReader and/or BufferedWriter. For example you are using a Stream that needs Position.

(Inherited from Host)
ProcessRequest(Stream, Stream)

Processes a request from a client

This override will automatically create the BufferedReader and BufferedWriter for you then call ProcessRequest(BufferedReader, BufferedWriter).

This is the preferred process request method to call.

(Inherited from Host)
SetProtocolVersion(Object)

Sets what protocol version to use.

Set value to null to reset back to none.

(Inherited from Host)
StartListening()

Starts listening for incoming requests

StartListeningAsync()

Starts listening for incoming requests

(Inherited from Host)

Applies to