private void Server_ServerShuttingDown(object sender, InternetFramework.Events.InternetEventArgs e) { AddLog("Server Shutting Down."); Server.ServerStarted -= Server_ServerStarted; Server.ServerStopping -= Server_ServerStopping; Server.ServerStopped -= Server_ServerStopped; Server.ServerShuttingDown -= Server_ServerShuttingDown; Server.IncomingMessage -= Server_MessageTransmitting; Server.OutgoingMessage -= Server_MessageTransmitting; Server.NewConnection -= Server_NewConnection; Server.RemoteDisconnected -= Server_RemoteDisconnected; Server.RemoteDisconnecting -= Server_RemoteDisconnecting; SetServerRunning(false); }
private void Server_ServerStarted(object sender, InternetFramework.Events.InternetEventArgs e) { AddLog("Server Started."); SetServerRunning(true); }
private void Server_ServerStopping(object sender, InternetFramework.Events.InternetEventArgs e) { AddLog("Server Stopping"); }