socket programme for java and C#