SteamServer class

A wrapper for the SteamGameServer to easily manage game server instance

Properties

gamePort int
The port that clients will connect to for gameplay
final
hashCode int
The hash code for this object.
no setterinherited
ip String
The IP address you are going to bind to. (This should be in host order, i.e 127.0.0.1 == 0x7f000001). You can use INADDR_ANY to bind to all local IPv4 addresses
final
pipe HSteamPipe
Steam pipe value to be used across steam calls
finalinherited
queryPort int
The port that will manage server browser related duties and info pings from clients
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverMode EServerMode
Sets the authentication method of the server
final
steamGameServer Pointer<ISteamGameServer>
Accesses server instance of ISteamGameServer
no setter
steamGameServerStats Pointer<ISteamGameServerStats>
Accesses server instance of ISteamGameServerStats
no setter
steamHttp Pointer<ISteamHttp>
Accesses server instance of ISteamHttp
no setter
steamInventory Pointer<ISteamInventory>
Accesses server instance of ISteamInventory
no setter
steamNetworkingMessages Pointer<ISteamNetworkingMessages>
Accesses server instance of ISteamNetworkingMessages
no setter
steamNetworkingSockets Pointer<ISteamNetworkingSockets>
Accesses server instance of ISteamNetworkingSockets
no setter
steamNetworkingUtils Pointer<ISteamNetworkingUtils>
Accesses server instance of ISteamNetworkingUtils
no setter
steamPort int
The local port used to communicate with the steam servers
final
steamUgc Pointer<ISteamUgc>
Accesses server instance of ISteamUgc
no setter
steamUtils Pointer<ISteamUtils>
Accesses server instance of ISteamUtils
no setter
versionString String
The version string is usually in the form x.x.x.x, and is used by the master server to detect when the server is out of date. (Only servers with the latest version will be listed.)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerCallback<T extends NativeType>({required void cb(Pointer<T> data)}) Callback<T>
Register the Callback to the Dispatcher
inherited
registerCallResult<T extends NativeType>({required SteamApiCall asyncCallId, required void cb(Pointer<T> data, bool hasFailed)}) CallResult<T>
Register the CallResult to the Dispatcher
inherited
runFrame() → void
Runs frames in order to receive callbacks
inherited
toString() String
A string representation of this object.
inherited
unregisterCallback({required Callback<NativeType> callback}) → void
Unregister the Callback from the Dispatcher
inherited
unregisterCallResult({required CallResult<NativeType> callResult}) → void
Unregister the CallResult from the Dispatcher
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance SteamServer
Initalized instance of the SteamServer Do not access this before calling init
no setter

Static Methods

init({required String ip, int steamPort = 0, int gamePort = 27015, int queryPort = 27016, EServerMode serverMode = EServerMode.authenticationAndSecure, String versionString = "1.0.0.0"}) → void
Initalizes the SteamServer. Calling init multiple time is noop