Very newbie... socket data stream capture question  
Author Message
GerryArmstrong





PostPosted: Visual Basic Express Edition, Very newbie... socket data stream capture question Top

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.



Visual Studio Express Editions37  
 
 
DMan1





PostPosted: Visual Basic Express Edition, Very newbie... socket data stream capture question Top

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/



 
 
GerryArmstrong





PostPosted: Visual Basic Express Edition, Very newbie... socket data stream capture question Top

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.