Hi,

OS: Windows.
Language: C++

Say you have a program that connects to an FTP server. Then in the process of transferring a file, you simply hit "Ctrl+c", then the connection drops, as a result WSACleanup i'm guessing is not called, etc.

Basically i want to simulate the event of Ctrl+c in the middle of a connection.

Thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.