Example #1
0
 public BnMessage(BnMessageType type, ITransmittable data)
 {
     Type = type;
     Data = data;
 }
Example #2
0
 public DataMessage(DataMessageDir dir, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath = new Stack<BackConnection>();
 }
Example #3
0
 public void WriteTransmittable(ITransmittable transmittable)
 {
     transmittable.WriteData(this);
 }
Example #4
0
 public DataDownMessage(int destSupernode, int nextSupernode, ITransmittable payload)
     : base(DataMessageDir.Down, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode = nextSupernode;
 }
Example #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;
 }
Example #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!
 }
Example #8
0
 public DataDownMessage(int destSupernode, int nextSupernode, IEnumerable <BackConnection> backPath, ITransmittable payload)
     : base(DataMessageDir.Down, backPath, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode        = nextSupernode;
 }
Example #9
0
 public DataDownMessage(int destSupernode, int nextSupernode, ITransmittable payload)
     : base(DataMessageDir.Down, payload)
 {
     DestinationSupernode = destSupernode;
     NextSupernode        = nextSupernode;
 }
Example #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!
 }
Example #11
0
 public DataMessage(DataMessageDir dir, ITransmittable data)
     : base(BnMessageType.Data, data)
 {
     Direction = dir;
     BackPath  = new Stack <BackConnection>();
 }
Example #12
0
 public BnMessage(BnMessageType type, ITransmittable data)
 {
     Type = type;
     Data = data;
 }