TransportManager

The TransportManager handles talking to the transports as well sending, receiving, and even customizing packets on the fly.

Description

The TransportManager in FishNet is a central component responsible for communicating with the underlying network transport to send and receive data. It acts as the bridge between FishNet’s networking system and the actual transport layer, enabling networked games to send/receive packets to and from clients and servers. There is also support for latency simulation for testing different network conditions.

With the TransportManager you can optionally utilize an intermediate layer to modify data before it’s sent or after it’s received (e.g., encryption, compression).

If you want to modify network data such as for encryption, or use any one of our number of transports, you will want to add this component to your NetworkManager game object.

Settings

Default Settings

⚙️ Transport

This field indicates which transport to use. When left empty, the default transport (Tugboat) is used, or the first transport manually added to the object which the TransportManager resides.

⚙️ Intermediate Layer

This is used to specify a custom intermediate layer to use.

⚙️ Latency Simulator

These settings allow you to simulate a variety of latency scenarios on any transport.

  • Enabled: Toggles the enabled state of the simulator.

  • Simulate Host: When enabled, this will also simulate latency for host client.

  • Latency: Is the amount of latency to simulate in milliseconds.

  • Unreliable: Features only used for unreliable packets.

    • Out Of Order: The percentage chance to send an out of order packet.

    • Packet Loss: The chance to drop a packet.

Last updated