public void Disconnect() { if (this.servInterface != null) { this.servInterface.Disconnect(); this.servInterface = null; } }
// Load scripts void InitializeScripts() { // --- Web sockets serverInterface = new ServerInterface(); serverInterface.Initialize(); // --- Interfaces List<UIBase> interfaces = new List<UIBase>(); // Dashboard UIBase dashboard = interfaceObject.GetComponent<DashboardUI>(); dashboard.Initialize(); interfaces.Add(dashboard); // Facebook UIBase facebookPanel = interfaceObject.GetComponent<FacebookPanel>(); dashboard.Initialize(); interfaces.Add(dashboard); activeInterfaces = interfaces.ToArray(); // --- Events eventProcessor = eventProcessorObject.GetComponent<EventProcessor>(); eventProcessor.Initialize(); // --- Get main page content //Debug.Log("pinging server for content...."); }
public Simulator(ServerInterface serverInterface, string simId) { this.simId = simId; this.simInterface = serverInterface.ConnectToSim(this.simId); this.Init(); this.log = new SimulatorLog(this.simInterface); }
public Simulator(ServerInterface serverInterface, string name, string description) { this.simId = serverInterface.StartSim(name, description); this.simInterface = serverInterface.ConnectToSim(this.simId); this.Init(); this.log = new SimulatorLog(this.simInterface); }
private void button1_Click(object sender, EventArgs e) { int port = int.Parse(textBox1.Text); TcpChannel channel = new TcpChannel(port); ChannelServices.RegisterChannel(channel, false); RemoteClient rc = new RemoteClient(); RemotingServices.Marshal(rc, "ChatClient", typeof(RemoteClient)); server = (ServerInterface)Activator.GetObject( typeof(ServerInterface), "tcp://localhost:8086/ChatServer"); try { server.Connect(port); } catch (SocketException) { System.Console.WriteLine("Could not locate server"); } }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.recievePacketHistory(List, username); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.recieveLoadFile(this); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.SaveData(); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.ReceiveMeasurement(measurement, physicianName, training); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.GetUsers(); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.Broadcast(sender, message); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.ChatMessage(sender, receiver, message); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.AddUser(user,physicianName); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.NewUsers(users); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.receivePacketSession(this); }
public EgonServer(string releasePath) { this.servInterface = null; this.releasePath = releasePath; }
public void Connect(String username, String server, int port) { this.servInterface = new ServerInterface(username, server, port); this.simulators = new List<Simulator>(); this.refreshSimsList(); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.SaveWerkbon(werkbon); }
public virtual void handleServerSide(ServerInterface serverInterface) { }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.GetWerkbonnen(); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.receiveChatPacket(this); }
bool ConnectToServer() { bool success = false; try { remoteObject = (ServerInterface)Activator.GetObject(typeof(ServerInterface), "tcp://" + ServerIP + ":" + ServerPort + "/" + ServerServiceName); success = true; } catch (System.Net.Sockets.SocketException sock) { MessageBox.Show("SocketException: Server Is not Running"); } catch (System.Reflection.TargetInvocationException tg) { MessageBox.Show("TargetInvocationException"); } return success; }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.sendMeasurementList(); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.AddUser(user); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.ReceiveMeasurement(measurement, physicianName, sessionType, username); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.login(username, password); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.receivePacketBicycleCommand(this); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.GiveUser(username, allUsers, physicianName); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.NewWerkbonnen(werkbonnen); }
public override void handleServerSide(ServerInterface serverInterface) { serverInterface.BikeValues(power, time, distance, username); }