Пример #1
0
 public BnMessage(BnMessageType type, ITransmittable data)
 {
     Type = type;
     Data = data;
 }
Пример #2
0
 public DataMessage(DataMessageDir dir, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath = new Stack<BackConnection>();
 }
Пример #3
0
 public void WriteTransmittable(ITransmittable transmittable)
 {
     transmittable.WriteData(this);
 }
Пример #4
0
 public DataDownMessage(int destSupernode, int nextSupernode, ITransmittable payload)
     : base(DataMessageDir.Down, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode = nextSupernode;
 }
Пример #5
0
 public DataDownMessage(int destSupernode, int nextSupernode, IEnumerable<BackConnection> backPath, ITransmittable payload)
     : base(DataMessageDir.Down, backPath, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode = nextSupernode;
 }
 /// <summary>
 /// Create a protocol wrapper, to be wrapped around a client or server
 /// </summary>
 /// <param name="inputOutput"></param>
 public AAHProtocolWrapper(ITransmittable transmitter)
 {
     Transmitter = transmitter;
     transmitter.OnDataAvailable += HandleDataAvailable;
 }
Пример #7
0
 public DataMessage(DataMessageDir dir, IEnumerable<BackConnection> backPath, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath = new Stack<BackConnection>(backPath.Reverse());	// TODO: Temporary decision!
 }
Пример #8
0
 public DataDownMessage(int destSupernode, int nextSupernode, IEnumerable <BackConnection> backPath, ITransmittable payload)
     : base(DataMessageDir.Down, backPath, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode        = nextSupernode;
 }
Пример #9
0
 public DataDownMessage(int destSupernode, int nextSupernode, ITransmittable payload)
     : base(DataMessageDir.Down, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode        = nextSupernode;
 }
Пример #10
0
 public DataMessage(DataMessageDir dir, IEnumerable <BackConnection> backPath, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath  = new Stack <BackConnection>(backPath.Reverse());                 // TODO: Temporary decision!
 }
Пример #11
0
 public DataMessage(DataMessageDir dir, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath  = new Stack <BackConnection>();
 }
Пример #12
0
 public BnMessage(BnMessageType type, ITransmittable data)
 {
     Type = type;
     Data = data;
 }