File: README.md

package info (click to toggle)
golang-github-pion-ice.v2 2.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 684 kB
  • sloc: makefile: 5
file content (34 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
# ping-pong

This example demonstrates how to connect two peers via ICE. Once started they send the current time between each other.

Currently this example exchanges candidates over a HTTP server running on localhost. In a real world setup `pion/ice` will typically
exchange auth and candidates via a signaling server.

## Instruction
### Run controlling

```sh
go run main.go -controlling
```


### Run controlled

```sh
go run main.go
```

### Press enter in both to start the connection!

You will see terminal output showing the messages being sent back and forth
```
Local Agent is controlled
Press 'Enter' when both processes have started
ICE Connection State has changed: Checking
ICE Connection State has changed: Connected
Sent: 'fCFXXlnGmXdYjOy'
Received: 'EpqTQYLQMUCjBDX'
Sent: 'yhgOtrufSfVmvrR'
Received: 'xYSTPxBPZKfgnFr'
```