Jump to content

Client-Server C#-JAVA

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
tomerp

tomerp

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,

I'm building a client server application and I wanted to know what is the best way to implement it under the following constraints:
1) The server need to be implemented in JAVA.
2) The client need to be implemented in c#.
3) The Server need to be able to open the connection to the client and vise versa
4) There should be no port forwarding issues on the client machine, meaning the client will be easy deployed and without any network special configuration issues( such as port forwarding).
5) The communication between the server and client may be implemented under security terms in the future ( some encrypted handshake mechanism).
6) The communication between the server and client will use the Object Oriented mechanism using serialization and deserialization mechanism.

I thought of the following architectures:
1) Both the client and server will be web services. As what I know in this situation constraints 4 (port forwarding at the client) will be ignored, cause the client will need to be listening on a port for server requests. Also constraints 5 may be hard to implemented.
2) server will be web service (for client requests) and for requests started from the server - the client and the server will communicate through normal tcp communication layer under dedicated PROTOCOL. Only as what I found out constraint 6 is hard to acheive, meaning that in order to use the same objects as transferred objects (using some serialization and deserialization mechanism) I should use some heavy libraries such as : IIOP.NET or Ja.NET.

The best way I would like to implement these application is using the principle of web services (including the tool to generate the supose to be transferred classes for both JAVA and C#), with the ability to achieve all the constraints I mentioned.


Any Ideas?

Thanks,
Tomer.

#2
ferovac

ferovac

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
i failed to see the question here.....

the best way is to delete all of the constraints, in fact delete the whole thread, i'm sorry but to me this is a bunch of rubbish

you dont need client and server application you need two server communicating, why i dont know

if your gunning for client server communication and you need both sides to be able to open connection you dont do two server you do a server and two clients, and just make a client conect to a server every now and then and check for a connection

and all this talk about java and C# , i'm sorry to tell you this but you wont be able to do this(it is possible to do this, but you sound like you dont know nor java nor C#), first learn some basics about network programming

and the concept you are trying to accomplish is like a web chat, and since you are new here i cant help not thinking that you are trying to make some sort of a trojan maybe a botnet????