Java socket communication

  • Thread starter Thread starter jediknight
  • Start date Start date
J

jediknight

Hi,

I am trying to establish whether I can have a C# socket server and Java
socket clients. From all the examples I have seen on the web refer to
Java Servers and C# clients.

Can anyone point me in the direction of a C# socket server and Java
client example??

Cheers
 
jediknight said:
I am trying to establish whether I can have a C# socket server and Java
socket clients.

You can - TCP isn't sensitive to the framework or OS. Both .NET sockets
and Java sockets use the underlying Winsock implementation on Windows.
Can anyone point me in the direction of a C# socket server and Java
client example??

Any pair of all-C# and all-Java socket examples can be adapted to be
half C# / Java, once you understand the two models. I advise you to
understand TCP and the different classes in both Java and C# first.
After that, it's trivial to combine them any way you like.

-- Barry
 
Hi ,


jediknight said:
Hi,

I am trying to establish whether I can have a C# socket server and Java
socket clients. From all the examples I have seen on the web refer to
Java Servers and C# clients.

Can anyone point me in the direction of a C# socket server and Java
client example??

It should work the same, all you have to be sure is that the protocol be
well defined. then it should work no matter what language the server/client
is implemented under.
 
If you are trying to do some distributed computing then consider web
services. That also can be easily called by your Java client.

chanmm
 
jediknight,

provided that both ends are using the Obi-Wan Kenobi protocol, there should
be no problem at all. May the farce be with you.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top