|
-
Nov 20th, 2006, 05:40 PM
#1
Thread Starter
Hyperactive Member
Read incoming data form a port
hi every one can any one pls help me with reading incoimg data of the port
i thought the code was
VB Code:
sock.IOControl(IOControlCode.DataToRead, byt, bytes)
sock.BeginReceive(Bufferdata, 0,bufferdata.Length, SocketFlags.None, New AsyncCallback(AddressOf OnReceive), Nothing)
error
VB Code:
Message = "The system detected an invalid pointer address in attempting to use a pointer argument in a call"
any help would be helpfull
Last edited by demon.KILER; Nov 20th, 2006 at 06:02 PM.
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Nov 22nd, 2006, 12:42 PM
#2
Re: Read incoming data form a port
Hi there,
Im not 100% clear about your goal here, which of the following applies?
1. You want to open a port and let something connect, read the data and possibly send something back.
or
2. You want to read data coming into a port that is already in use, and was not opened by your program. IE you want to make a packet sniffer?
-
Nov 22nd, 2006, 05:48 PM
#3
Thread Starter
Hyperactive Member
Re: Read incoming data form a port
2. You want to read data coming into a port that is already in use, and was not opened by your program. IE you want to make a packet sniffer?
is the exact thing I am trying to do for more than 2 days
thx for future help
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Nov 22nd, 2006, 08:41 PM
#4
Re: Read incoming data form a port
Have a look at this, its a contest winner
http://www.pscode.com/vb/scripts/Sho...4090&lngWId=10
Its not only a packet sniffer, but the guy has created a library, so people can just use the library to sniff the packets, I havent tested it but you should be able to have it read the data from a specific port on whatever protocol you choose such as TCP or UDP
There is another one here:
http://www.pscode.com/vb/scripts/Bro...1=Quick+Search
-
Nov 23rd, 2006, 06:29 PM
#5
Thread Starter
Hyperactive Member
Re: Read incoming data form a port
yeah I will take a look at it thx
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Nov 25th, 2006, 08:50 PM
#6
Frenzied Member
Re: Read incoming data form a port
 Originally Posted by the182guy
i've tryed those before but they dont work.
-
Nov 26th, 2006, 10:10 AM
#7
Re: Read incoming data form a port
@high6 are you using vb6 or .net?
-
Nov 26th, 2006, 05:21 PM
#8
Thread Starter
Hyperactive Member
Re: Read incoming data form a port
I use .net And i doesn't work for me
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Dec 1st, 2006, 09:33 PM
#9
Thread Starter
Hyperactive Member
Re: Read incoming data form a port
Any one tryed winpcap before ??
if U did pls explain to me how to use them in vb.net
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|