SAMPLE: Echoc.exe – Simple Overlapped Socket Client Sample

ID: Q193066

The information in this article applies to:

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 Software Library:

 ~ Echoc.exe (size: 28080 bytes) 

Release Date: Sep-25-1998

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

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:

   ARTICLE-ID: Q192569
   TITLE     : BUG: Winsock 2 APC Calls Get Lost on Windows 95 & 98

REFERENCES

The following Knowledge Base article describes how overlapped socket I/O operates:

   ARTICLE-ID: Q181611
   TITLE : INFO: Socket Overlapped I/O Versus Blocking/Non-blocking Mode

For more information on overlapped socket I/O, please consult the Winsock documentation in the Platform SDK.

Additional query words: Keywords : kbfile kbnetwork kbsample kbAPI kbNTOS400 kbSDKPlatform kbWinOS95 kbWinOS98 kbWinsock kbGrpNet

Last Reviewed: September 26, 1998