NetworkInterface
in
Network interfaces are transport layers which can be used to transmit packets between the server and clients.
Table of Contents
- setName() : void
- shutdown() : void
- Gracefully shuts down the network interface.
- start() : void
- Performs actions needed to start the interface after it is registered.
- tick() : void
- Called every tick to process events on the interface.
Methods
setName()
public
setName(string $name) : void
Parameters
- $name : string
Return values
void —shutdown()
Gracefully shuts down the network interface.
public
shutdown() : void
Return values
void —start()
Performs actions needed to start the interface after it is registered.
public
start() : void
Tags
Return values
void —tick()
Called every tick to process events on the interface.
public
tick() : void