public BnMessage(BnMessageType type, ITransmittable data) { Type = type; Data = data; }
public DataMessage(DataMessageDir dir, ITransmittable data) : base(BnMessageType.Data, data) { Direction = dir; BackPath = new Stack<BackConnection>(); }
public void WriteTransmittable(ITransmittable transmittable) { transmittable.WriteData(this); }
public DataDownMessage(int destSupernode, int nextSupernode, ITransmittable payload) : base(DataMessageDir.Down, payload) { DestinationSupernode = destSupernode; NextSupernode = nextSupernode; }
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; }
public DataMessage(DataMessageDir dir, IEnumerable<BackConnection> backPath, ITransmittable data) : base(BnMessageType.Data, data) { Direction = dir; BackPath = new Stack<BackConnection>(backPath.Reverse()); // TODO: Temporary decision! }
public DataDownMessage(int destSupernode, int nextSupernode, IEnumerable <BackConnection> backPath, ITransmittable payload) : base(DataMessageDir.Down, backPath, payload) { DestinationSupernode = destSupernode; NextSupernode = nextSupernode; }
public DataMessage(DataMessageDir dir, IEnumerable <BackConnection> backPath, ITransmittable data) : base(BnMessageType.Data, data) { Direction = dir; BackPath = new Stack <BackConnection>(backPath.Reverse()); // TODO: Temporary decision! }
public DataMessage(DataMessageDir dir, ITransmittable data) : base(BnMessageType.Data, data) { Direction = dir; BackPath = new Stack <BackConnection>(); }