문제

I am wondering if an idea i have in mind is possible in object oriented programming.Let us say i have a client (A) on a certain ip address i.e 192.168.1.105 and a server (B) on ip address 192.168.1.101. Would it be possible to access objects in client (A) and possibly modify an object of my choice on the same client from server (B) ?.Is there a technique in c++ or java or any other major language i can use to achieve this ?.

도움이 되었습니까?

해결책

There are actually several technologies that allow you to do that but I guess you mean language independent CORBA or Java's RMI. Also have a look at remote EJB calls etc.

다른 팁

Once you have sockets opened you can use them to exchange messages between client and server. This messages may be interpreted to do what you need.

E.g.: a message with a known content issued from client to server causes an object on the server side to change!

However, this seems quite obvious, maybe you meant something else (Remote Method Invocation)?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top