Negotiation.vala 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using LibPeer.Protocols.Mx2;
  2. using LibPeer.Protocols.Stp.Streams;
  3. using Gee;
  4. namespace LibPeer.Protocols.Stp {
  5. public class Negotiation : Object {
  6. public Bytes session_id { get; internal set; }
  7. public Bytes in_reply_to { get; internal set; }
  8. public uint8[] feature_codes { get; set; }
  9. public NegotiationState state { get; internal set; }
  10. public InstanceReference remote_instance { get; internal set; }
  11. internal Retransmitter request_retransmitter { get; set; }
  12. internal Retransmitter negotiate_retransmitter { get; set;}
  13. public uint64 ping { get; internal set; }
  14. public SessionDirection direction { get; internal set; }
  15. public signal void established(StpOutputStream stream);
  16. }
  17. public enum NegotiationState {
  18. REQUESTED,
  19. NEGOTIATED,
  20. ACCEPTED
  21. }
  22. public enum SessionDirection {
  23. INGRESS,
  24. EGRESS
  25. }
  26. }