Beispiel #1
0
 public FlowClient(IPAddress address, int port, FlowOptions options = null)
 {
     this.address = address;
     this.port    = port;
     this.options = options ?? new FlowOptions();
     flowBinder   = new FlowBinder(this.options);
     clientSocket = new TcpClient();
 }
Beispiel #2
0
 public SomeBindWorker(FlowBinder binder)
 {
     binder.Bind <Planet>(1, (Action <Planet>)Console.WriteLine);
 }
Beispiel #3
0
 public FlowServer(FlowOptions options = null)
 {
     this.options  = options ?? new FlowOptions();
     flowBinder    = new FlowBinder(this.options);
     serverClients = new FlowGroup(this);
 }
Beispiel #4
0
 public void SetUp()
 {
     binder = new FlowBinder(new FlowOptions());
 }