Simple chat programs
-
I searched through many of the "chat" programs provided on this site, but could not find any that were simple enough, and a lot even used a windows interface. What I want to know how to do, is to make a simple server and a client using a terminal window. All I basically want it to do is this: SERVER:: >Runs on a hardcoded ip adress and port (for simplicity) and can handle multiple clients. >Also, needs to somehow keep track of the IP+ports of the users who are logged on. (maybe a string array would work well) CLIENT:: >Whenever you run the Client, it connects to the hardcoded IP+port. >As soon as you logon, the server sends you some simple message like "Hello" >Then, you put in the nickname you want to use. >Then you enter the chat room, and whatever you type in, the server sends to all the other Clients. like this "MyName> hello chat clients" Also, if you could, please keep this to as few includes as possible, as far as I can tell, you really only need or and "winsock2.h". Also, please keep it to standard datatypes (int char string etc.) Thank you for helping me with this project.
-
I searched through many of the "chat" programs provided on this site, but could not find any that were simple enough, and a lot even used a windows interface. What I want to know how to do, is to make a simple server and a client using a terminal window. All I basically want it to do is this: SERVER:: >Runs on a hardcoded ip adress and port (for simplicity) and can handle multiple clients. >Also, needs to somehow keep track of the IP+ports of the users who are logged on. (maybe a string array would work well) CLIENT:: >Whenever you run the Client, it connects to the hardcoded IP+port. >As soon as you logon, the server sends you some simple message like "Hello" >Then, you put in the nickname you want to use. >Then you enter the chat room, and whatever you type in, the server sends to all the other Clients. like this "MyName> hello chat clients" Also, if you could, please keep this to as few includes as possible, as far as I can tell, you really only need or and "winsock2.h". Also, please keep it to standard datatypes (int char string etc.) Thank you for helping me with this project.
So basically you don't want anything too fancy, or your teacher will know you didn't do your homework ? Nice try. Given that you've asked in the wrong forum ( or are you learning Managed C++ ? ), I guess you're not the most attentive guy, which probably accounts for your not being able to do your own homework. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
I searched through many of the "chat" programs provided on this site, but could not find any that were simple enough, and a lot even used a windows interface. What I want to know how to do, is to make a simple server and a client using a terminal window. All I basically want it to do is this: SERVER:: >Runs on a hardcoded ip adress and port (for simplicity) and can handle multiple clients. >Also, needs to somehow keep track of the IP+ports of the users who are logged on. (maybe a string array would work well) CLIENT:: >Whenever you run the Client, it connects to the hardcoded IP+port. >As soon as you logon, the server sends you some simple message like "Hello" >Then, you put in the nickname you want to use. >Then you enter the chat room, and whatever you type in, the server sends to all the other Clients. like this "MyName> hello chat clients" Also, if you could, please keep this to as few includes as possible, as far as I can tell, you really only need or and "winsock2.h". Also, please keep it to standard datatypes (int char string etc.) Thank you for helping me with this project.
check out "Network Development Kit 2" which can be found on this site.
-
check out "Network Development Kit 2" which can be found on this site.
-
check out "Network Development Kit 2" which can be found on this site.
-
if you do a search of this site you will find it, but to make things easier for you i will include the link for you. http://www.codeproject.com/internet/ndk.asp
-
if you do a search of this site you will find it, but to make things easier for you i will include the link for you. http://www.codeproject.com/internet/ndk.asp
-
if you do a search of this site you will find it, but to make things easier for you i will include the link for you. http://www.codeproject.com/internet/ndk.asp
-
A funny thing is that a wizard created that app. Doesnt anyone do it manually anymore? Another problem, is that the only thing that could probably compile it is VC++, which is pretty lame.
sure a wizard created the app but not the underlying code. Check the source code for the app and you will see that the sdk is not wizard created.
-
I searched through many of the "chat" programs provided on this site, but could not find any that were simple enough, and a lot even used a windows interface. What I want to know how to do, is to make a simple server and a client using a terminal window. All I basically want it to do is this: SERVER:: >Runs on a hardcoded ip adress and port (for simplicity) and can handle multiple clients. >Also, needs to somehow keep track of the IP+ports of the users who are logged on. (maybe a string array would work well) CLIENT:: >Whenever you run the Client, it connects to the hardcoded IP+port. >As soon as you logon, the server sends you some simple message like "Hello" >Then, you put in the nickname you want to use. >Then you enter the chat room, and whatever you type in, the server sends to all the other Clients. like this "MyName> hello chat clients" Also, if you could, please keep this to as few includes as possible, as far as I can tell, you really only need or and "winsock2.h". Also, please keep it to standard datatypes (int char string etc.) Thank you for helping me with this project.
:laugh:;P;):cool: