Yaron,
The .NET equivalent for SocketAddress would be EndPoint. For an IP
address (in Java, it is InetSocketAddre ss), you can use the IPEndPoint
class. In .NET, it is a little different, as you can't use a DNS name (you
can use the static methods on the DNS class to resolve a dns name into an IP
address), just an IP address.
For the ByteBuffer class, there is no direct equivalent. I would
recomment you use a MemoryStream instance (for the backing store), along
with a BinaryReader/BinaryWriter class to read/write primitive data types
to/from the stream.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"yaron" <ya***@discussi ons.microsoft.c om> wrote in message
news:D9******** *************** ***********@mic rosoft.com...
Hi,
for porting java to c# i need to know:
What is the C#.NET equivalent for java.net.Socket Address and
java.nio.ByteBu ffer ?
Thanks.