Photon Server API Documentation
v5.0RC1
This class provides access to the available protocols. More...
Static Public Member Functions | |
| static bool | TryRegisterCustomType (Type customType, byte typeCode, Func< object, byte[]> serializeFunction, Func< byte[], object > deserializeFunction) |
| Tries to register a custom type for serialization. More... | |
| static void | RegisterTypeMapper (IUnknownTypeMapper mapper) |
| static bool | TryParseInitRequest (byte[] data, out InitRequest initRequest) |
| The try parse init request. More... | |
Static Public Attributes | |
| const int | CRYPTO_BLOCK_SIZE = 16 |
Properties | |
| static bool | AllowRawCustomValues [get, set] |
| Gets or sets a value indicating whether unknown customes types are allowed. if set to true unknown custom types will be serialized as an RawCustomValue instance. More... | |
| static Dictionary< ProtocolType, IRpcProtocol > | Protocols [get] |
| static IRpcProtocol | GpBinaryV162 [get] |
| Gets the GpBinary protocol version 1.6 with header version 2 More... | |
| static IRpcProtocol | GpBinaryV17 [get] |
| Gets the GpBinary protocol version 1.7 More... | |
| static IRpcProtocol | Json [get] |
| Gets the Json protocol implementation. More... | |
| static IRpcProtocol | GpBinaryV18 [get] |
| static Dictionary< ProtocolType, IRpcProtocol > | AllProtocols [get] |
| static InboundController | InboundController = new InboundController() [get, set] |
| static Encoding | IncomingDataEncoding = Encoding.GetEncoding("UTF-8", EncoderFallback.ExceptionFallback, new DecoderReplacementFallback("?")) [get] |
This class provides access to the available protocols.
|
inlinestatic |
|
inlinestatic |
The try parse init request.
| data | The data. |
| initRequest | The init request. |
|
inlinestatic |
Tries to register a custom type for serialization.
| customType | Type of the custom type. |
| typeCode | The type code. |
| serializeFunction | The serialize function. |
| deserializeFunction | The deserialize function. |
|
static |
|
staticgetset |
Gets or sets a value indicating whether unknown customes types are allowed. if set to true unknown custom types will be serialized as an RawCustomValue instance.
true if unknown custom types are allowed; otherwise, false.
|
staticget |
|
staticget |
Gets the GpBinary protocol version 1.6 with header version 2
|
staticget |
Gets the GpBinary protocol version 1.7
|
staticget |
|
staticgetset |
|
staticget |
|
staticget |
Gets the Json protocol implementation.
|
staticget |