C# 클래스 NetworkCommsDotNet.SendReceiveOptions

Contains options and flags for sending and receiving data such as serialisation method, data processors, encryption etc. Several static constructors are provided to help create SendReceiveOptions in the most common formats.
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : object

Create a deep clone of this SendReceiveOptions object.

OptionsCompatible ( SendReceiveOptions options ) : bool

Determines whether the supplied SendReceiveOptions is compatible, from a serialization point of view, with this instance

Two SendReceiveOptions instances will be compatible if they use the same DPSBase.DataSerializer and the same set of DPSBase.DataProcessors

SendReceiveOptions ( ) : System

Initializes an empty instance of the SendReceiveOptions class.

SendReceiveOptions ( DataSerializer serializer, List dataProcessors, string>.Dictionary options ) : System

Initializes a new instance of the SendReceiveOptions class with a specified DPSBase.DataSerializer, set of DPSBase.DataProcessors and and other options

SendReceiveOptions ( string>.Dictionary options ) : System

Initializes a new instance of the SendReceiveOptions class providing only options for the DPSBase.DataSerializer and DPSBase.DataProcessors. This constructor should only be used when adding packet handlers for incoming connections

메소드 상세

Clone() 공개 메소드

Create a deep clone of this SendReceiveOptions object.
public Clone ( ) : object
리턴 object

OptionsCompatible() 공개 메소드

Determines whether the supplied SendReceiveOptions is compatible, from a serialization point of view, with this instance
Two SendReceiveOptions instances will be compatible if they use the same DPSBase.DataSerializer and the same set of DPSBase.DataProcessors
public OptionsCompatible ( SendReceiveOptions options ) : bool
options SendReceiveOptions The to compare against
리턴 bool

SendReceiveOptions() 공개 메소드

Initializes an empty instance of the SendReceiveOptions class.
public SendReceiveOptions ( ) : System
리턴 System

SendReceiveOptions() 공개 메소드

Initializes a new instance of the SendReceiveOptions class with a specified DPSBase.DataSerializer, set of DPSBase.DataProcessors and and other options
public SendReceiveOptions ( DataSerializer serializer, List dataProcessors, string>.Dictionary options ) : System
serializer DataSerializer The to use
dataProcessors List The set of s to use. The order in the list determines the order the s will be applied
options string>.Dictionary Allows additional options to be passed to the and s
리턴 System

SendReceiveOptions() 공개 메소드

Initializes a new instance of the SendReceiveOptions class providing only options for the DPSBase.DataSerializer and DPSBase.DataProcessors. This constructor should only be used when adding packet handlers for incoming connections
public SendReceiveOptions ( string>.Dictionary options ) : System
options string>.Dictionary Allows additional options to be passed to the and s
리턴 System