locked
Very newbie... socket data stream capture question RRS feed

  • Question

  • Hi all,

    First, please forgive me if this is a simple question as I am very new to this form of programming, I have some Pascal knowledge and PHP but...

    What I am trying to achieve here is quite simple, I want to capture text data that is being streamed via a TCP/IP socket (61328 for ex) to a text file or even better to a table in a MSAccess database. I can live with the text file and then import but figured I would go for the unltimate anyway :-). Currently I capture the data using Hyperterminal then import to Access but I need to have something that requires less human interaction.

    I am not sure if Visual Basic is the best way for me to achieve this either so any suggestions would be willingly accepted.

    Friday, June 23, 2006 12:46 PM

Answers

  • Ok, I have figured it out and have been able to save the stream data to a text file, just gotta get it to work with a database instead but the hard part is over.

    Monday, June 26, 2006 3:12 PM

All replies

  • Visual basic is capable of such a task...You will need to become very familiar with the System.Data namespace to import the data to Access and the System.Net namespace to capture the socket datastream...

    CHeckout the 101 VB samples to get started:

    http://msdn.microsoft.com/vbasic/downloads/code/101samples/

    Friday, June 23, 2006 1:53 PM
  • Ok, I have figured it out and have been able to save the stream data to a text file, just gotta get it to work with a database instead but the hard part is over.

    Monday, June 26, 2006 3:12 PM