P
Padu
Hi,
I'm designing a system in C# and I believe the .net framework will simplify
my task. Let me give you a background of my app first:
Client:
Has a collection of certain objects called "Command". Commands may be saved
(serialized) to a local disk, loaded later and then sent to a host for
execution.
Must realize if server is on before sending the "script of Command"
Server:
Receives commands from clients (usually only one client)
I'm leaning towards using serialization and/or remoting to design this app.
Network security is not a concern. From what I've read so far, I believe I
could design this system in the following way:
Mark the client "Command" as [Serializable] and use a binary formatter to
serialize/deserialize from disk.
Use remoting for "Command" transmission. The server has a CommandProcessor
object which inherits from MarshalByRefObject. One of its methods
(ProcessCommand) receives a Command, so basically my client app would use
the following line of code to send a command to the server:
commandProcessor.ProcessCommand(clientCommand);
Both apps are windows form apps. Later I will need to receive data from the
server as either events or callbacks, but that's later.
Do you the way I am trying to do makes sense? Well, I'll find out when I
start implementing it, but if you know that it won't work, it will save me
some work.
Cheers
Padu
I'm designing a system in C# and I believe the .net framework will simplify
my task. Let me give you a background of my app first:
Client:
Has a collection of certain objects called "Command". Commands may be saved
(serialized) to a local disk, loaded later and then sent to a host for
execution.
Must realize if server is on before sending the "script of Command"
Server:
Receives commands from clients (usually only one client)
I'm leaning towards using serialization and/or remoting to design this app.
Network security is not a concern. From what I've read so far, I believe I
could design this system in the following way:
Mark the client "Command" as [Serializable] and use a binary formatter to
serialize/deserialize from disk.
Use remoting for "Command" transmission. The server has a CommandProcessor
object which inherits from MarshalByRefObject. One of its methods
(ProcessCommand) receives a Command, so basically my client app would use
the following line of code to send a command to the server:
commandProcessor.ProcessCommand(clientCommand);
Both apps are windows form apps. Later I will need to receive data from the
server as either events or callbacks, but that's later.
Do you the way I am trying to do makes sense? Well, I'll find out when I
start implementing it, but if you know that it won't work, it will save me
some work.
Cheers
Padu