summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/rtc_tools/data_channel_benchmark/peer_connection_signaling.proto
blob: 9bd0aae91217b7b430606739f3e437807b3146d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
syntax = "proto3";

package webrtc.GrpcSignaling;

service PeerConnectionSignaling {
  rpc Connect(stream SignalingMessage) returns (stream SignalingMessage) {}
}

message SignalingMessage {
  oneof Content {
    SessionDescription description = 1;
    IceCandidate candidate = 2;
  }
}

message SessionDescription {
  enum SessionDescriptionType {
    OFFER = 0;
    ANSWER = 1;
  }
  SessionDescriptionType type = 1;
  string content = 2;
}

message IceCandidate {
  string mid = 1;
  int32 mline_index = 2;
  string description = 3;
}