473,387 Members | 1,863 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,387 software developers and data experts.

Problem with local UDP transmission

Hi @ll...

I wanted to code a small proxy-like program for testing purposes. Another
application binds to a local port 12203 and listens there for incoming
datagrams and sends datagrams. My proxy schould then take the datagrams sent
by the other application and forward them. In return, it has to receive the
incoming datagrams from the "server" (remote machine) and forward the data
to the local port. I did it before with vb6 and it worked very well.

But I have just no clue how to code the following lines in .NET. Could
someone please point me into the right direction?

----------------------------------------------------------------------------
-------------------

With Winsock1
.Protocol = sckUDPProtocol
.Bind 12000
End With

Winsock1.SendData strData
----------------------------------------------------------------------------
-------------------

Thank's in advance,
Stevie
Jul 19 '05 #1
1 1980
In .NET, we can use the socket with classes in SYSTEM.NET.SOCKETS, you can
get more detail information from following link:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconsockets.asp

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin

MS03-026?* If not Microsoft strongly advises you to review the information
at the following link

regarding Microsoft Security Bulletin MS03-026
http://www.microsoft.com/security/

security_bulletins/ms03-026.asp and/or to visit Windows Update at
http://windowsupdate.

microsoft.com to install the patch. Running the SCAN program from the
Windows Update site

will help to insure you are current with all security patches, not just
MS03-026."

Jul 19 '05 #2

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

Similar topics

0
by: Holger Joukl | last post by:
Hi, what version of python are you using? I got the same error when invoking a customized, 2-year-old version of distutils with python 2.3.3 (instead of 1.5.2, as before). Reason is code in...
0
by: Holger Joukl | last post by:
Hi there, I have severe problems running python 1.5.2 (yes I know, but this is a productive environment; cannot switch to py 2.3.3 until later this year...) on several multi-processor sun...
2
by: Holger Joukl | last post by:
Hi, migrating from good old python 1.5.2 to python 2.3, I have a problem running a program that features some threads which execute calls to an extension module. Problem is that all of a sudden,...
17
by: Dave | last post by:
Hi I'm making a 3D Engine which consists of the class C3DEngine. Part of this engine is a file loader, a class called CMeshLoader. I have made an instance of CMeshLoader in C3DEngine, ie...
4
by: LongBow | last post by:
Hello all, I have been working on my first embedded project which has been exciting and stressfull at the same time. My task now is to develop a good scheduler for transmitting ARINC labels....
2
by: Stephan Eberle | last post by:
Hi @ll... I wanted to code a small proxy-like program for testing purposes. Another application binds to a local port 12203 and listens there for incoming datagrams and sends datagrams. My proxy...
8
by: Martin Z | last post by:
INSERT INTO dbo.Transmission (TransmissionDate, TransmissionDirection, Filename, TransmittedData) VALUES (@TransmissionDate,@TransmissionDirection,@Filename,@TransmittedData); SELECT @retVal =...
6
by: White Spirit | last post by:
I have the following code to send a packet to a remote socket and receive a response in return: System.Net.Sockets.Socket locSocket = new System.Net.Sockets.Socket (AddressFamily.InterNetwork,...
10
by: oktayarslan | last post by:
Hi all; I have a problem when inserting an element to a vector. All I want is reading some data from a file and putting them into a vector. But the program is crashing after pushing a data which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.