INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Getting data stream from internet.

Getting data stream from internet.

(OP)
I am confused (as usual) about exactly how to hook up (hopefully) a winsock to receive a data stream coming from a remote website (in order to observe changes in incoming data in my vb6 app).

We have a public transport provider that provides a stream on the web of data representing the info and GPS location of it's buses at any time. This is used by electronic ticketing and vehicle management. They have given me the web address of this "stream" as they call it to see if I can integrate it with some old VB6 apps they use. (Nobody in the organisation understands VB6 anymore - they apparently all have died of old age!

When I simply open a browser on the site I get a small file of about 20k of information that I can save to a file and inspect. This contains all the info from all the trains or buses and is updated every minutes. It is simply bytes that represent various parameters of the bus something like a database converted to text so I can easily decode it.

How can I get this data direct without having to save it as a file so changes automatically happen on my screen?

I have seen lots of examples on how to use the web and to read similar databases but not how bring them together.

RE: Getting data stream from internet.

Um ... have you looked at the Microsoft Internet Transfer Control?

RE: Getting data stream from internet.

I wouldn't bother with the creaky old ITC/WinInet Control anymore. Windows has shipped with several superior HTTP client classes for quite a long time now, each with its own set of advantages and disadvantages. But for HTTP GET you can also just use the AsyncRead method built into VB6's UserControl infrastructure.

Quote:

It is simply bytes that represent various parameters of the bus something like a database converted to text so I can easily decode it.

Which is it? Bytes or text?

Seems odd for them to call this a stream. But perhaps it is and your browser fell back to a simple request. Perhaps you'll need to implement WebSockets, Comet/Long Polling, etc. yourself.

Surely they have more specs than just a URL?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close