Question

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

Was it helpful?

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.

OTHER TIPS

For first question,yes you can use any language as long as you use TCP/IP protocol.

For second question,my solution is,create an stop event for iocp,and every once a while,send a little package to client,if client does not reply this package,set the stop event up,and release the connection for the client

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top