-
-
Notifications
You must be signed in to change notification settings - Fork 305
NetWorker Statistics
The NetWorker
class contains several statistics via properties that you will probably want to query in your application.
The list of all of the networked players. This is a wrapper around the native network socket with extra meta-data for each connection. Please note that you will need to use a lock
to make accesses to this list thread-safe. See Thread Safe Player Iteration for more information on this topic.
Also note that this list only reflects the number of players (read: connections) that have been directly established. In other words, on a server this list will be populated with the server's own client connection and every other client that is currently connected to it. On a client, this list will only contain the connection to the server.
Maximum number of allowed connections. Should only be used in server-side code.
Note: The returned value will always be 0
for clients.
The internal counter for a server that monotonically increases for each new client connection. It determines the connection ID of a client. Do not confuse this counter with the player count. See Players
property if you want to know the number of connected players.
These properties contain the number of bytes that have been received and sent.
Getting Started
Network Contract Wizard (NCW)
Remote Procedure Calls (RPCs)
Unity Integration
Basic Network Samples
Scene Navigation
Master Server
Netcoding Design Patterns
Troubleshooting
Miscellaneous
-
Connection Cycle Events
-
Rewinding
-
Network Logging
-
Working with Multiple Sockets
-
Modify Master and Standalone servers
-
NAT Hole Punching
-
UDP LAN Discovery
-
Offline Mode
-
Ping Pong
-
Lobby System
-
Upgrading Forge Remastered to Develop branch or different version
-
Forge Networking Classic to Remastered Migration Guide
-
Script to easily use Forge Networking from sources
-
Run Two Unity Instances with Shared Assets for Easiest Dedicated Client Workflow