1
Reply

Network issue

xileflo

xileflo

Dec 12 2004 2:39 PM
1.9k
I've an server/client application, for sending single commands to specific clients connected to the server. The server has an array object with the clients and their informations. For more detailed informations I have to send a complicated string like "inetStats:PC1!online:PC2!offline" and then I'm using String.Split(':') btw.: String.Split('!'). (I know it's veeery unprofessional!) So, I just read about remote objects and MarshalByRefObject and I think it's a rather better way: With a remote object I could make an array with the inetStates accessible for all connected clients. I tested it by implementing the code, and it still works fine. But is that a good idea, making a TCP channel for remote objects next to my Socket connection? I'd like to replace the socket connection(working with delegates) with the TCP channel method. But I don't know how to send commands to specific single clients, like in my socket connection?! I'm looking forward to any suggestions. (Sry for my bad english :-O )

Answers (1)