- Oct 30, 2000
- 42,589
- 5
- 0
Simplistic example
I have a tic-tac-toe game.
User in a console application enters the tile number (1-9)
Separate application gets the tile number, analyze options; makes a move and sends the move back to the user.
My intention is to have a method in the game side that the user can call with the use move.
The return from the the call is the game move and the game status.
I do not want to utilize shared memory - intent is to learn how to run code across systems.
--------------------------------------------
Issue
Without C#; I would have opened a socket connection between systems and pumped data across via a simple read/write socket.
Apparently, I now need to setup a WCF Contract/library that each application links to that allows a call/response to a method called.
Does the contract interface mirror the game application interface or does it have additional code.
Or are there simple linked in modules available that one can just add the interface handler the way you do between classes.
Using a textbook now; has 100+ lines of code that have to be added in support of a DLL. This is without figuring out how to interface to my little 10 line applications
I have a tic-tac-toe game.
User in a console application enters the tile number (1-9)
Separate application gets the tile number, analyze options; makes a move and sends the move back to the user.
My intention is to have a method in the game side that the user can call with the use move.
The return from the the call is the game move and the game status.
I do not want to utilize shared memory - intent is to learn how to run code across systems.
--------------------------------------------
Issue
Without C#; I would have opened a socket connection between systems and pumped data across via a simple read/write socket.
Apparently, I now need to setup a WCF Contract/library that each application links to that allows a call/response to a method called.
Does the contract interface mirror the game application interface or does it have additional code.
Or are there simple linked in modules available that one can just add the interface handler the way you do between classes.
Using a textbook now; has 100+ lines of code that have to be added in support of a DLL. This is without figuring out how to interface to my little 10 line applications
