aboujouj83
IS-IT--Management
I am implemeting a simple client/server TCP program. I want the server to be able to have a very basic discussion with the client i.e to be able to answer few questions like: how are you? what's your name? where do you live? ....
So, I will have to store these questions and some answers for them (that the server will reply with) somewhere.
I am not sure how to do that, because I don't want to use the basic C if-else statments to find out which question the client is asking...
Can I use something like the ROM structure? Any suggestion is very appreciated.
Waiting for your replies
THANKS
Aboujouj
So, I will have to store these questions and some answers for them (that the server will reply with) somewhere.
I am not sure how to do that, because I don't want to use the basic C if-else statments to find out which question the client is asking...
Can I use something like the ROM structure? Any suggestion is very appreciated.
Waiting for your replies
THANKS
Aboujouj