News
 

DLLBinder Example - Chatterbox

Chatterbox is a distributed message delivery system that enables processes to interact locally or across a network. The application could form the basis of a real-time chat forum; interactive gaming environment; secure intranet email service and so on. But before you start sending us emails telling us about Flash Communication Server MX, please remember that chatterbox is intended primarily as example that demonstrates how to use the DllBinder Pro XTRA. In particular it is a demonstration of how to make asynchronous API calls. That said, it is also the case that access to a low-level API such as WinSock provides a large degree of flexibility that should hold plenty of appeal for the professional developer.

To use this code, make sure you have downloaded the DLLBinder Pro V1.0.0 and String Handler V1.1.0 XTRAs. Then download file chatterbox.zip

Feel free to make use of this code in any way you want. If you make any great improvements, please send us a copy. Or if you have any other examples you would like to appear in these LIBRARY pages, please send it to info@the-mindseye.co.uk

Minds Eye Visualisation Services accepts no responibility for the reliability of any of the source code appearing in these pages. Use it at your own risk.

 

Requirements


DLLBinder pro


Minds Eye String Handler

 

Download zip Download Zip file   (chatterbox.zip - 92Kb)


At the lowest level three parent scripts are provided that are intended as generic wrappers for a portion of the Win32 Sockets API:

sctTCPClientServiceConn

This script encapsulates the TCP client. It maintains a connection to a specified port on a specified host machine.

External API:
new(strHostName, nPort)
CloseConnection()
OpenConnection()
ReceiveStream()
SendStream(oStream)
GetStatus()
WSAStartup()
WSACleanup()

 

sctTCPService

This script encapsulates the TCP service. It listens for new TCP client connections on a specified port.

External API:
new(me, nPort)
ReceiveNewConnection()
StartListening()
StopListening()
GetStatus()
WSAStartup()
WSACleanup()

 

sctTCPServiceClientConn

This script encapsulates a single TCP service-side client and is an integral part of the server-side service. A new child instance of this script is created for each new connection socket handle received by the sctTCPService TCP listening service.

External API:
new(hSocket)
CloseConnection()
ReceiveStream()
SendStream(oStream)

  3d visualisation     data visualisation     interactive cds     printing     software     web design     training     games  
© Copyright 2006. Minds Eye Visualisation Services Limited. All Rights Reserved.