Status Changed Callback

89 views
Skip to first unread message

samriv...@gmail.com

unread,
May 29, 2017, 8:14:01 PM5/29/17
to lidgren-network-gen3
Hello.
I want to fire an event when the server is started.
NetServer.Status is of type NetPeerStatus.
NetPeerStatus can be NotRunning, Running, ShutDownRequested and Starting.
So when I call NetServer.Start() I guess the Status is "Starting", I need to have a callback when it is actually started ( = Running ).
The NetIncomingMessageType.StatusChanged is only meant for a changed status of a connection, right?
I don't want to poll the NetServer.Status for a change.
Reply all
Reply to author
Forward
0 new messages