473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Read incoming data form a port in vb.net

3
hi every one can any one pls help me with reading incoimg data of the port

i thought the code was


Expand|Select|Wrap|Line Numbers
  1. sock = New Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP)
  2. sock.IOControl(IOControlCode.DataToRead, byt, bytes)
  3. sock.BeginReceive(Bufferdata, 0,bufferdata.Length, SocketFlags.None, New AsyncCallback(AddressOf OnReceive), Nothing)

error

Expand|Select|Wrap|Line Numbers
  1. visual basic code:Message = "The system detected an invalid pointer address in attempting to use a pointer argument in a call"


any help would be helpfull
Nov 20 '06 #1
4 2462
Hello,
can you tell me how to create pages for blogs in my own site http://www.vtlglobal.com
Nov 21 '06 #2
sashi
1,754 Expert 1GB
Hello,
can you tell me how to create pages for blogs in my own site http://www.vtlglobal.com
Hi there,

Please provide clear & simple problem statement as it would ease in providing solution in return. Creating your own BLOG? What do you mean by that? You want to have your own BLOG section? You have 2 options, which is create yourself, the second will be looking in google for free BLOG related software. Good luck & Take care.
Nov 21 '06 #3
h4xor
3
what about mine ??
Nov 21 '06 #4
h4xor
3
I want to read data coming into a port that is already in use, and was not opened by my program.(packet sniffer)

is what I want to do
Nov 22 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: roberto | last post by:
Hi,i'm trying to read udp packets sent by satellite. It's a porting of a delphi program i did some year ago but , as i'm learning c#, i'd like to do it. I have the ip address of the sat...
3
by: Geof | last post by:
Hello, I need to write an application to monitor incoming UDP packets on a specific port. This UDP port is already in use by a third party application. The goal is : to execute some code...
1
by: | last post by:
Hi, I'm writing a small client-server application using sockets Server code IPAddress address = Dns.Resolve("localhost").AddressList; TcpListener tcpl = new TcpListener(address, PORT);...
5
by: Darrell Wesley | last post by:
Is there a good source of information on how to read a USB port, in particular reading data from a BarCode reader?
1
by: Tolgay Gül | last post by:
I need some codes that able to send and read data by serialport in VB.Net 2005 beta 2. I wrote some codes and It can send data via serialport but It cannot read what I send. I have looked up on...
4
by: sracherla | last post by:
I am trying to write a simple windows service that accepts an incoming request; receives a string input and sends a string output. I need this connection to stay alive until the client closes it....
5
by: Jens | last post by:
Hello, I have been looking for some C-code which listens on a user-defined port for incoming data traffic. When data is received, the data is written to a file. I found some C-code (server)...
1
by: ghjk | last post by:
I'm write code to read data from GSM modem. but it couldn't read modem response. Could you please help me? I'll post my code. using System; using System.Collections.Generic; using...
4
drhowarddrfine
by: drhowarddrfine | last post by:
I have a new customer with a cash register that runs on Windows XP. This register software runs full screen and I'm told you can't run anything else while this is running, but I don't know what they...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.