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?

Recommended Answers

All 3 Replies

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

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.

All the System.Net Namespaces can be found here

Be a part of the DaniWeb community

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