c++socketsiocp

Connecting non-IOCP client with IOCP Server


I am designing a client-server application. My server will be in C++ and using IOCP for TCP/IP communication.

Decision for technology for client development not decided yet. So I have few questions regarding IOCP compatibility with client to be developed in future (I need to freeze design for Server):

  1. Can I use general socket programming of java(client will be developed in java more likely) to communicate IOCP based Server?

  2. How IOCP responds for abrupt and graceful termination of client connection (what notification I'll get on server)?

Thanks

Nipun


Solution

  • You are talking about socket programming here, and the middle layer is TCP/IP and so the network programming library (e.g. IOCP) is irrelevant. You can use whatever language or library on the client side.