SAMPLE: Echoc.exe - Simple Overlapped Socket Client Sample (193066)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • the operating system: Microsoft Windows NT
    • Microsoft Windows 95
    • Microsoft Windows 98
    • the operating system: Microsoft Windows 2000

This article was previously published under Q193066

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:
Release Date: Sep-25-1998

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

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to 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:

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

REFERENCES

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

181611 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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbAPI kbfile kbnetwork kbsample kbWinsock KB193066