docs: fix the description of host/guest in vsock

In Connecting from Host to Guest section, the host/guest are misused,
this patch fix that.

Signed-off-by: Yi Wang <foxywang@tencent.com>
This commit is contained in:
Yi Wang 2023-07-14 14:39:51 +08:00 committed by Bo Chen
parent 274f1aa2e7
commit 83b1a30f29

View File

@ -50,11 +50,11 @@ The examples use __socat__ `>=1.7.4` to illustrate the VSOCK functionality. Howe
### Connecting from Host to Guest ### Connecting from Host to Guest
The host starts to listen on the defined port: The guest starts to listen on the defined port:
`$ socat - VSOCK-LISTEN:1234` `$ socat - VSOCK-LISTEN:1234`
Once the host is listening, the guest can send data: Once the guest is listening, the host can send data:
`echo -e "CONNECT 1234\\nHello from host!" | socat - UNIX-CONNECT:/tmp/ch.vsock `echo -e "CONNECT 1234\\nHello from host!" | socat - UNIX-CONNECT:/tmp/ch.vsock