WinTalk
Requirements
This demo requires Microsoft NGWS
Description
WinTalk is a WFC application that allows you to communicate to another remote WinTalk client using TCP/IP sockets. The application has a Windows user interface which contains two multiline edit controls and two buttons ("Connect" and "Disconnect"). The upper edit control will display status messages as well as incoming "talk" messages from a remote running WinTalk. The bottom edit control is where the user types outbound messages.
Clicking the "Connect" button will display a connect dialog which will allow the user to enter hostname and port information for connecting to a remote running WinTalk. WinTalk automatically starts to listen on port 5000. Therefore, to connect to a machine running WinTalk, please enter the hostname of the machine in the connect dialog, and set the port number to port 5000.
The "Disconnect" button will end a WinTalk session (closing the TCP/IP connection).
Build Instructions
set CORPATH=%SystemRoot%\system32
nmake -f makefile
Execution Instructions
Please run "wintalk.exe" to run the sample. Two copies of WinTalk can run on the same machine; however; only the first running copy will be able to bind to port 5000. Note that since the connect dialog defaults to host="localhost" and port="5000", clicking connect and then clicking "OK" on the connect dialog will most likely result in WinTalk attempting to connect to itself. If this happens, WinTalk will initially accept the connection, realize that a connection is in progress, and immediately terminate the connect request.
Once a connection is established between two copies of WinTalk (either running on the same machine or different machines), the user types in the lower edit control and receives messages in the upper edit control. If no connection is present, the "Disconnect" button will be disabled.