Microsoft KB Archive/193066

From BetaArchive Wiki

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



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 kbOSWinNT400 kbOSWin2000 kbSDKPlatform kbOSWin95 kbOSWin98 kbWinsock kbGrpDSNet
Issue type :
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch


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