public override void Execute(SyncExecutionContext context, TcpClient client, SyncServer server) { server.Pong(client); }
public override void Execute(SyncExecutionContext context, TcpClient client, SyncServer server) { server.PropogateMessage(PropogatedMessage); }
public abstract void Execute(SyncExecutionContext context, TcpClient client, SyncServer server);
private void buttonStart_Click(object sender, EventArgs e) { KillConnection(); if(Server) { _server = new SyncServer(_context); _server.Start(); } else { _client = new SyncClient(_context, textBox1.Text); _client.Start(); Properties.Settings.Default.ServerIP = textBox1.Text; Properties.Settings.Default.Save(); } UpdateVisibility(); }
public void KillConnection() { if (Server && _server != null) { _server.Stop(); _server = null; } else if (!Server && _client != null) { _client.Stop(); _client = null; } }
public abstract void Execute(SyncExecutionContext context, TcpClient client, SyncServer server);
public override void Execute(SyncExecutionContext context, TcpClient client, SyncServer server) { server.PropogateMessage(PropogatedMessage); }
public override void Execute(SyncExecutionContext context, TcpClient client, SyncServer server) { server.Pong(client); }