From: Melchior FRANZ <[EMAIL PROTECTED]>

* dene maxwell -- Friday 17 February 2006 10:18:
> That would suit my needs exactly if;
> a) I wanted to do it manually
> b) I could start a telnet session from within VB6 (not saying you can't just
> I haven't yet)

Forget about "telnet". It's a normal tcp socket connection. I'm
confident that VB6 can do that. Did you look at the examples as
I told you? The c/c++ examples in scripts/example/ don't even
mention "telnet".

m.
Melchoir, just looked up MSDN, I quote;
"Using the Winsock Control


A WinSock control allows you to connect to a remote machine and exchange data using either the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP). Both protocols can be used to create client and server applications. Like the Timer control, the WinSock control doesn't have a visible interface at run time.

Possible Uses
Create a client application that collects user information before sending it to a central server.


Create a server application that functions as a central collection point for data from several users.


Create a "chat" application.
Selecting a Protocol
When using the WinSock control, the first consideration is whether to use the TCP or the UDP protocol. The major difference between the two lies in their connection state:

The TCP protocol control is a connection-based protocol, and is analogous to a telephone — the user must establish a connection before proceeding.


The UDP protocol is a connectionless protocol, and the transaction between two computers is like passing a note: a message is sent from one computer to another, but there is no explicit connection between the two. Additionally, the maximum data size of individual sends is determined by the network. The nature of the application you are creating will generally determine which protocol you select. Here are a few questions that may help you select the appropriate protocol:

Will the application require acknowledgment from the server or client when data is sent or received? If so, the TCP protocol requires an explicit connection before sending or receiving data.


Will the data be extremely large (such as image or sound files)? Once a connection has been made, the TCP protocol maintains the connection and ensures the integrity of the data. This connection, however, uses more computing resources, making it more "expensive."


Will the data be sent intermittently, or in one session? For example, if you are creating an application that notifies specific computers when certain tasks have completed, the UDP protocol may be more appropriate. The UDP protocol is also more suited for sending small amounts of data. "

Regards
=Dene

_________________________________________________________________
Need more speed? Get Xtra Broadband @ http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to