提交 2348cf20 编写于 作者: G Guido Günther

document tcp listen and raw wire option

上级 484640ea
......@@ -858,13 +858,45 @@ qemu-kvm -net nic,model=? /dev/null
<p>
The character device acts as a TCP client connecting to a
remote server, or as a server waiting for a client connection.
remote server.
</p>
<pre>
...
&lt;serial type="tcp"&gt;
&lt;source mode="connect" host="0.0.0.0" service="2445"/&gt;
&lt;protocol type="raw"/&gt;
&lt;target port="1"/&gt;
&lt;/serial&gt;
...</pre>
<p>
Or as a TCP server waiting for a client connection.
</p>
<pre>
...
&lt;serial type="tcp"&gt;
&lt;source mode="bind" host="127.0.0.1" service="2445"/&gt;
&lt;protocol type="raw"/&gt;
&lt;target port="1"/&gt;
&lt;/serial&gt;
...</pre>
<p>
Alternatively you can use telnet instead of raw TCP.
<p>
<pre>
...
&lt;serial type="tcp"&gt;
&lt;source mode="connect" host="0.0.0.0" service="2445"/&gt;
&lt;protocol type="telnet"/&gt;
&lt;target port="1"/&gt;
&lt;/serial&gt;
...
&lt;serial type="tcp"&gt;
&lt;source mode="bind" host="127.0.0.1" service="2445"/&gt;
&lt;protocol type="telnet"/&gt;
&lt;target port="1"/&gt;
&lt;/serial&gt;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册