SAMPLE: Echoc.exe û Simple Overlapped Socket Client Sample

ID: Q193066


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), on platform(s):
    • Windows NT
    • Windows 95
    • Windows 98


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. Click the file name below to download the file:

Echoc.exe
Release Date: Sep-25-1998

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

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


REFERENCES

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

Q181611 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
Version : WINDOWS:
Platform : WINDOWS
Issue type :


Last Reviewed: December 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.