Problem with local UDP transmission

  • Thread starter Thread starter Stephan Eberle
  • Start date Start date
S

Stephan Eberle

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
 
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/default.asp?url=/library/en-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."
 
Back
Top