Microsoft KB Archive/193066

{|
 * width="100%"|

SAMPLE: Echoc.exe - Simple Overlapped Socket Client Sample

 * }

Q193066

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows NT
 * Microsoft Windows 95
 * Microsoft Windows 98
 * the operating system: Microsoft Windows 2000

-

SUMMARY
Echoc.exe is a sample that contains a simple TCP echo service client that demonstrates overlapped socket I/O with or without a completion notification routine.

MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

"Echoc.exe" Release Date: Sep-25-1998

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

You need to install the simple TCP/IP service in the network applet of the control panel on a Windows NT computer to test the Echoc.exe application. After you start the simple TCP/IP service on the Windows NT computer, the echo service is listening on port 7.

The following command connects and communicates with the echo service using overlapped I/O with a completion notification routine:

"echoc NT_Machine_Name 7 1" The following command connects and communicates with the echo service using overlapped I/O without a completion notification routine.

"echoc NT_Machine_Name 7 0" Due to a bug described in the following article in the Microsoft Knowledge Base, please do not use completion callbacks with overlapped socket I/O on either Windows 95 or Windows 98:

"Q192569 BUG: Winsock 2 APC Calls Get Lost on Windows 95 & 98"