1<html><head> 2 <title>Metakit sample code - CatSend</title> 3</head><body bgcolor=white> 4 5<font face=Helvetica size=3> 6 7<!--begin--> 8<h2><img src="e4app.gif" alt="App Icon" border=0 align=left> 9Metakit sample code - CatSend</h2><br clear=left> 10 11<p>This application is a simple TCP/IP client based on Winsock. </p> 12 13<p><b>What it does</b>: CatSend allows you to select a datafile and to 14transmit its contents over a TCP/IP connection. Although CatSend can handle 15any Metakit datafile, only the catalog files created by DisCat will make 16sense to the receiving program called "CatRecv" (see below). 17By altering the address shown on the screen, you can transfer the data 18across the network to any other machine on Internet running CatRecv... 19this is only a demonstration of what can be done, this serves no useful 20purpose whatsoever. </p> 21 22<p><b>What it illustrates</b>: CatSend illustrates how to work with Metakit 23datafiles of which the structure is unknown or only partially known. Since 24CatSend doesn't care, this program will continue to work even if DisCat 25and CatRecv are modified to use a different data structure on file. </p> 26 27<p><b>How to use it</b>: CatSend only makes sense in combination with Catrecv 28and DisCat. To try it out, you should first create a catalog file with 29DisCat which you can then pick up with CatSend. Note that like any typical 30client-server application, the CatRecv server application must be running 31before using CatSend to open a connection. Apart from selecting a datafile 32and transmitting it to CatRecv, the CatSend application is pretty boring. 33The "interesting" source code is less than 10 lines long... </p> 34 35<p><b>Known problems</b>: None, but since CatSend uses Winsock, you need 36to have a correctly installed version of the TCP/IP protocol stack (such 37as the one that comes with Windows 95). </p> 38 39<p>You do not need an active network connection or any network hardware, 40since every TCP/IP installation can select local communication by using 41"localhost" as a host name (i.e. IP address 127.0.0.1). If you 42obtained this package from Internet via FTP, then you should be all set, 43since FTP access implies that you have a properly working TCP/IP configuration. 44</p> 45 46<p><b>Files in EXAMPLES\CATSEND</b>: </p> 47 48<p>CATSEND.H, CATSEND.CPP - Main MFC application code 49<br>CATSEND.MAK, CATSEND.MDP - MSVC 4.2 project makefiles for Win32 50<br>CATSEND.RC - Application resources 51<br>MYDLG.H, MYDLG.CPP - Main dialog 52<br>RESOURCE.H - Resource symbol definitions 53<br>STDAFX.H, STDAFX.CPP - Used for precompiled headers 54<br>RES\*.* - Application resources </p> 55<!--end--> 56 57<center><p><hr size=1> 58|| 59 <a href="index.html" target="_top">Roadmap</a> 60 <a href="classes.html">Class Index</a> 61 <a href="samples.html">Sample Index</a> 62 || 63 <a href="intro.html">Introduction</a> 64 <a href="tips.html">Tips and Tricks</a> 65 || 66 67</center> 68</font> 69 70</body></html> 71