readme

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· 代码 · 共 29 行

TXT
29
字号
This code illustrates how to write a single set of source code (for aclient and server) and then parameterize in the desired IPC mechanism.In this case, the IPC mechanisms include sockets, TLI, and STREAMpipes.  The single set of source code is located in CPP-acceptor.cpp(which is the server) and CPP-connector.cpp (which is the non-blockingclient).Here's how I typically run these tests:% test_sock_acceptor localhost:10020 &starting up daemon ./test_sock_acceptorstarting server addr 127.0.0.1:10020 on handle 5client addr 127.0.0.1:10003 on handle 6hello% test_sock_connector localhost:10020starting up daemon ./test_sock_connectoractivating 5in handle_outputplease enter input..: helloin handle_outputThere are a number of other options that you can provide.  Please seethe source code for details.Note that only the sock tests work on all platforms.  The other testsreply on features (in particular, non-blocking connections and TLI)that are mostly found on UNIX platforms.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?