C# and Java socket library