473,473 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Read and write incoming udp packets???

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 card(238.238.200.200), ip address an
port where data are coming from( 139.139.139.139:9000).
Using socket class i have to read the datagrams and show them in a
textbox or something after parsing .
Old prog read the datagram as a stream, but in c# i'm confused.I read
all msdnon sockets but.......
Please could anyone point me with some code on how to set up the
socket listening, reading?

Thanks.robert0
Nov 16 '05 #1
3 5148
roberto wrote:
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.


You could use Indy, of course. They have a .net version of their
library.

--
Mike Swaim sw***@hal-pc.org at home | Quote: "Boingie"^4 Y,W & D
MD Anderson Dept. of Biostatistics & Applied Mathematics
mp*****@mdanderson.org or ms****@odin.mdacc.tmc.edu at work
Disclaimer: Yeah, like I speak for MD Anderson.

Nov 16 '05 #2
"Mike Swaim" <ms****@odin.mdacc.tmc.edu> wrote in message news:<Ox**************@TK2MSFTNGP10.phx.gbl>...
roberto wrote:
You could use Indy, of course. They have a .net version of their
library.

Oh, thanks but it's not easy for me as they are blocking connection
and i think must be in a thread..
Isn't any way to have some code using sockets?
Nov 16 '05 #3
roberto wrote:
"Mike Swaim" <ms****@odin.mdacc.tmc.edu> wrote in message
news:<Ox**************@TK2MSFTNGP10.phx.gbl>...
roberto wrote:

You could use Indy, of course. They have a .net version of their
library.

Oh, thanks but it's not easy for me as they are blocking connection
and i think must be in a thread..
Isn't any way to have some code using sockets?


Sure, why not? The .NET FCL fully supports UDP. To get you started, you can
have a look at the helper class System.Net.UdpClient.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: RosalieM | last post by:
How can i know the nic adress from an incoming socket ? I can easily know the ip adress and port number but how do i have some information about arp level ? Thanks
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
6
by: Yechezkal Gutfreund | last post by:
I have been using the following code (successfully) to read Xml formated text packets from a TCP stream. The output from the server stream consists of a sequence of well formed Xml documents...
3
by: Al Cohen | last post by:
I'll start by warning that I'm a newbie to C# (but I've been programming for 25 years), so I may just be doing something reallyreally dumb. I'm writing a C# wrapper for a command-line application...
1
by: | last post by:
I cannot handle this.I can receive incoming but I cannot detect outgoing packets. I am using Windows XP no SP present. Thanks a lot for answers.
1
by: mulham.haffar | last post by:
hi guys.. im writing an application that uses windows service to listen (as a tcplistener) for any data sent (by a tcpclient) ... one kind of the requests might be a file sent by client and the...
6
by: ericunfuk | last post by:
Hi ALL, I want to read a binary file(it's pic.tif file, I guess it's binary file?), then write it to a new file), I have several questions about this process: When I use fread() to read a...
8
by: babakandme | last post by:
How can I read IP Datagram? Should I write some Driver for that? Is there any special book about it? Thank you.
4
by: selvialagar | last post by:
I am doing a project in embedded system (in vc++.net 2003)...I need to allocate a pool of free space for the incoming packets.Once i received the packet in the pool, an intimation must be given to me...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.