kisko_zsocket.txt (11/9/99) To install the ZSocket component On a A PC where Borland Builder 4 is installed in c:\program files\borland\cbuilder4, Download zsocket.obj in http://www.ise.ufl.edu/kisko/files/bb/ZSocket/ to c:\program files\borland\cbuilder4\lib Download zsocket.h to c:\program files\borland\cbuilder4\include Open Borland Builder 4 and ... Click Component Click Install Component Click Into new package Click into Unit file name browse to c:\program files\borland\cbuilder4\lib select files of type *.obj select zsocket.obj and click on Open Click into Package file name set to c:\program files\borland\cbuilder4\lib\zpack.bpk Click OK When dialog box "One or more lines were too long" appears, select OK Dialog box appears "Package zs.bpk will be built" select YES The package will be built, click OK when done. Close Builder Do not save changes to project1 or zsocket.obj Save changes to project zpack On a CIRCA PC: Download zsocket.obj in http://www.ise.ufl.edu/kisko/files/bb/ZSocket/ to c:\user Open Borland Builder 4 and ... Click Component Click install component Click into new package Click into unit file name browse to c:\user select files of type *.obj select zsocket.obj and click on Open Click into select package file name set to c:\user\zpack.bpk Dialog box appears "One or more lines to long" select OK Dialog box appears "Package zs.bpk will be built" select YES Click File (in the main menu) Click Close All (you may experience problems if you close Builder) Do not save changes to zsocket.obj Save changes to project zpack We will test Zsocket with two applications, a server and a client. The server will echo strings sent to it by clients. The client will send and receive strings to/from the server. To test the component Download server.zip in http://www.ise.ufl.edu/kisko/files/bb/ZSocket/ to c:\bb\server Download client.zip to c:\bb\client Unzip both Open Borland Builder 4 and Open the server project, run it, stop it, close all. Run server.exe via explorer. [NOTE] If you are experiencing difficulties running the executables, try copying zpack.lib (which should be in c:\user or c:\program files\borland\cbuilder4\lib, depending on which method you used to install the Zsocket component) into a into the current directory ( c:\bb\server). You might also have to copy the files borlndmm.dll and cp3245mt.dll (into the same directory that you just put zpack.lib into), which can be downloaded at http://www.ise.ufl.edu/esi4161/files/t-ReCS/inst_sim/ Open the client project, run it, send strings, the server echos them back, stop it, close all. Run client.exe via explorer. [NOTE] See above note. If you copied the 2 'dll' files into c:\bb\server above (instead of copying the files into a directory in the path), you will have to repeat the procedure and recopy the 2 'dll' files, this time into the directory c:\bb\client. Run two more copies of client.exe Let each send their own strings. Stop all clients and then the server.