Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究用 C 编写的服务器应用程序的 TCPIP 端口共享可能存在的问题。文档表明应用程序不必做任何事情,因为端口共享对服务器和客户端应用程序是透明的。
客户端/服务器应用程序在端口共享 TCPIP 设置(3 个服务器都使用同一端口运行)下工作正常,无需更改源代码。担心的是,如果我们在应用程序中更改某些内容,它可能会阻止端口共享工作。
应用程序建立连接的方式有什么需要避免的吗?还有什么我们应该注意的吗?
为任何 z/OS 服务器设置端口共享非常简单,并且应该对应用程序透明,只要没有关于共享状态的问题。如果您希望端口共享有效地工作,关键问题是连接持久性和过载。
accept()