I am working on a Java to C# conversion project. In this project, my custom java library uses java.net packages DatagramPacket and DatagramSocket classes.

Are there similar classes in .NET C# with similar functionalities?

Re: Java to C# conversion 80 80

I'm pretty sure there are. But why do you need them when you're converting FROM JAVA to C#?

Re: Java to C# conversion 80 80

Probably UdpClient (a higher level UDP socket). Or you can use a lower-level Socket with SocketType.Dgram and ProtocolType.Udp.

I don't know about DatagramPacket.

Re: Java to C# conversion 80 80

All the System.Net Namespaces can be found here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.