conversion C# TO

Posted on 2004-11-19
Last Modified: 2010-04-15
i have no idea about c#. Can any one help me in converting this c# code to

thanx in advance,

using System;
using System.Net;
using System.Net.Sockets;

namespace UdpEchoServer
    class App
        private const int ServerPortNumber = 9696;

        static void Main(string[] args)
            try {
                Socket udpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

                        EndPoint localEP = new IPEndPoint(IPAddress.Any, ServerPortNumber);
                EndPoint remoteEP = new IPEndPoint(IPAddress.None, ServerPortNumber);

                byte [] receiveBuffer = new byte [512];
                    while (true)
                        int receivedSize = udpSocket.ReceiveFrom(receiveBuffer, ref remoteEP);
                        udpSocket.SendTo(receiveBuffer, receivedSize, SocketFlags.None, remoteEP);
                        catch (SocketException se)
Question by:prashanth_gurijala
    LVL 2

    Expert Comment

    I could help you but , not through EE Cause I don't know all the specifics of VB.Net But if you do i can tell you what it is then you can write it in VB.
    AIM: FuLP02

    Shoot Me a message if you want to do it.
    LVL 18

    Accepted Solution


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now