mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 03:15:28 +02:00
socat: add multicast example (#15604)
This commit is contained in:
parent
634d8a3f1a
commit
60c4870491
1 changed files with 8 additions and 0 deletions
|
@ -18,3 +18,11 @@
|
|||
- Forward incoming data of a local port to another host and port:
|
||||
|
||||
`sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80`
|
||||
|
||||
- Send data with multicast routing scheme:
|
||||
|
||||
`{{echo "Hello Multicast"}} | socat - UDP4-DATAGRAM:{{224.0.0.1}}:{{5000}}`
|
||||
|
||||
- Receive data from a multicast:
|
||||
|
||||
`socat - UDP4-RECVFROM:{{5000}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue