Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Go Back  Xtreme Visual Basic Talk > > > Data transferbetween two vb6 software via internet


Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2012, 05:04 AM
jaycec jaycec is offline
Newcomer
 
Join Date: Jan 2012
Posts: 1
Default Data transferbetween two vb6 software via internet


Hi all
I have designed a temperature monitoring device that connect to my computer via serial port.I have tested it and the readings are successfully shown on a small vb program i designed.to this everything gone OK!.

Now i want to display this readings on another computer(of course on a vb program) on internet.my problem is how i can send this readings from my computer using vb6 through internet and receive at distant computer and show it live(somewhat).
What i actually want to know is How data transfer is possible between two vb6 software via internet.
please help me to get a start(for the simplest solution).

thanks in advance
Reply With Quote
  #2  
Old 07-26-2012, 10:40 AM
dilettante's Avatar
dilettanteData transferbetween two vb6 software via internet dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

Communication over the Internet can be more complicated than via local networks for a number of reasons. First you have to consider getting through firewalls. Next you have the issue of "finding" the "other end" when establishing communication. Then you have to consider that end-to-end communications will be both slower in throughput and in latency. Finally you'll find that it isn't as reliable as a local network and connections can fail for a number of reasons.


There really isn't a "simplest" solution. It depends on what you mean by "simplest" really.

You might mean something like "fewest lines of code" which if you are writing both ends of the communication has a different answer than if one end is a pre-made stadnard type of server or client. If you are writing both ends then using MSMQ Prinate Machine Queues might be called "the simplest."

However "simplest" might mean the one where you have the fewest concepts to learn and the least administrative setup to run. While the MSMQ approach is only a few lines of code few casual plinkers know anything about using it or setting it up.


Usually you'll get suggestions on how to use "bonehead TCP" with Winsock controls. This quickly turns into the topic of layering a message protocol on top of TCP since it is not message oriented, but a stream. You get here as soon as you find you are losing data or having your programs lock up when you write them to naively assume 1 send = 1 receive.


You can also get into trouble if your "serial port" (probably MSComm based) code is written naively. If you have any DoEvents calls in your program that's a big red flag that you are doing things incorrectly, which will impede adding Internet connectivity. Fix this first. Paraphrasing Obi-Wan: "Use the Events, Luke!" (in this case OnComm).


Beyond that further discussion is almost pointles. This sort of introductory information has been covered so many times that a simple search of the Web should return thousands of hits. Sadly separating the wheat from the enormous volume of chaff is quite a chore, since there is so much poor advice and poorer examples out there.
Reply With Quote
  #3  
Old 07-27-2012, 11:57 AM
dilettante's Avatar
dilettanteData transferbetween two vb6 software via internet dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

Taking some pity () I have thrown together two minimalist examples.


One uses UDP, which is a simpler process but requires that you deal with both firewall issues and potential NAT port mapping issues at both ends. The other uses TCP, which is more complex but normally only requires you to deal with firewall and NAT traversal at the server end.

But they'll both work for testing within one PC or across your LAN without any extensive effort - though Windows Firewall or another local software firewall may raise approval request prompts.


Since I don't have your Termperature device or the code for reading it, I've kludged up a FakeTempReader UserControl to generate fake temp readings on the server side.
Attached Files
File Type: zip Temperature Over IP.zip (9.9 KB, 73 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
 
Data transferbetween two vb6 software via internet
Data transferbetween two vb6 software via internet
 
-->