clientserver.doc
来自「Trolltech公司发布的基于C++图形开发环境」· DOC 代码 · 共 37 行
DOC
37 行
/*$Id: qt/clientserver.doc 3.3.4 edited May 27 2003 $*/ /*! \page clientserver-example.html \ingroup network-examples \title A small client-server example This example shows how two programs can communicate using sockets. Two simple example programs are provided, a client program and a server program. Both use the QSocket class, and the server also uses QServerSocket class. The server listens on port number 4242 and accepts incoming connections. It sends back every line it receives from the client, prepended with the line number. The client tries to connect to the server on the host specified on the command line or to localhost if no command line arguments are specified. You can send single lines to the server. <hr> Implementation server (server.cpp): \include network/clientserver/server/server.cpp <hr> Implementation client (client.cpp): \include network/clientserver/client/client.cpp*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?