mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
update readme
This commit is contained in:
parent
4c1be0599f
commit
ca19e60f37
1 changed files with 10 additions and 22 deletions
32
README.md
32
README.md
|
@ -1,28 +1,16 @@
|
||||||
```
|
```
|
||||||
Clients connect to websockets and broadcasts "ready".
|
On one computer do:
|
||||||
If client receives "ready" then it becomes the rtcOfferer and initiates (note that being an offerer does not mean it is the sender, that will be established later).
|
|
||||||
Establish secure passphrase using PAKE
|
$ git clone https://github.com/schollz/croc.git && cd croc && git checkout v7
|
||||||
Establish RTC communication
|
$ go build -v
|
||||||
Communication moves to the RTC channel
|
$ cp croc croc1 # this is the file for sending, ~ 20 MB
|
||||||
|
$ ./croc --send
|
||||||
|
|
||||||
|
|
||||||
1: rtcOfferer
|
On another computer do:
|
||||||
|
|
||||||
|
$ git clone https://github.com/schollz/croc.git && cd croc && git checkout v7
|
||||||
createOffer
|
$ go build -v
|
||||||
setLocalDescription
|
$ ./croc --receive
|
||||||
SEND offer
|
|
||||||
RECIEVE answer
|
|
||||||
setRemoteDescription(answer)
|
|
||||||
|
|
||||||
|
|
||||||
2: rtcAnswerer
|
|
||||||
|
|
||||||
|
|
||||||
setLocalDescription
|
|
||||||
RECEIVE offer
|
|
||||||
setRemoteDescription(offer)
|
|
||||||
createAnswer
|
|
||||||
SEND answer
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue