Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

ConnectionConfig

class in UnityEngine.Networking

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

This class defines parameters of connection between two peers, this definition includes various timeouts and sizes as well as channel configuration.

Variables

AckDelayHow long in ms receiver will wait before it will force send acknowledgements back without waiting any payload.
AllCostTimeoutDefines timeout in ms after that message with AllCost deliver qos will force resend without acknowledgement waiting.
ChannelCountReturn amount of channels for current configuration.
ChannelsAllow access to channels list.
ConnectTimeoutTimeout in ms which library will wait before it will send another connection request.
DisconnectTimeoutHow long (in ms) library will wait before it will consider connection as disconnected.
FragmentSizeWhat should be maximum fragment size (in Bytes) for fragmented messages.
IsAcksLongIf it is true, connection will use 64 bit mask to acknowledge received reliable messages.
MaxCombinedReliableMessageCountMaximum amount of small reliable messages which will combine in one "array of messages". Useful if you are going to send a lot of small reliable messages.
MaxCombinedReliableMessageSizeMaximum size of reliable message which library will consider as small and will try to combine in one "array of messages" message.
MaxConnectionAttemptHow many attempt library will get before it will consider the connection as disconnected.
MaxSentMessageQueueSizeDefines maximum messages which will wait for sending before user will receive error on Send() call.
MinUpdateTimeoutMinimal send update timeout (in ms) for connection. this timeout could be increased by library if flow control will required.
NetworkDropThresholdHow many (in %) packet need to be dropped due network condition before library will throttle send rate.
OverflowDropThresholdHow many (in %) packet need to be dropped due lack of internal bufferes before library will throttle send rate.
PacketSizeWhat is a maximum packet size (in Bytes) (including payload and all header). Packet can contain multiple messages inside.
PingTimeoutTimeout in ms between control protocol messages.
ReducedPingTimeoutTimeout in ms for control messages which library will use before it will accumulate statistics.
ResendTimeoutMinimum timeout (in ms) which library will wait before it will resend reliable message.
UsePlatformSpecificProtocolsWhen starting a server use protocols that make use of platform specific optimisations where appropriate rather than cross-platform protocols. (Sony consoles only).

Constructores

ConnectionConfigWill create default connection config or will copy them from another.

Funciones Públicas

AddChannel
GetChannelReturn the QoS set for the given channel or throw an out of range exception.

Funciones Estáticas

ValidateValidate parameters of connection config. Will throw exceptions if parameters are incorrect.