![]() |
Chiba Instant Messenger
1 Attachment(s)
This is just a simple C++ chat application that I built. it uses WINAPI and WINSOCK. It can be used as both a client or a server. For now its only 2-way, but im planning on making it multi-threaded.
|
I find it a little bit hard you have very little knowledge of networks but you're trying to program network programs.
127.0.0.1 is an ip address that just relays the connection you try to make back to your very own(the person who runs the program) computer, which will tell you there's no connection because I don't have the server. That is of course if you're using the addr.txt to grab the ip address of your server. If it's hardcoded then disregard this post, but either way I wasn't able to connect. |
I think you need to include the server in the download file. All you put up for download is the client...
|
as I stated above, this application is both a client and a server.
|
@jayme
replace the IP in addr.txt with your machines IP. It works fine for me here's how it works: change the IP in addr.txt open chiba and under options, click start server now on a different computer change the IP to the IP of the server click connect, and with any luck it should say.."connected to chat server" |
Alright, works fine. Multi-threading might be a bit much for this. Why not use select()ing sockets or windows messages?
|
Its already configured to use select(), but still needs some work, although I think windows messages would work alot better considering its using winsock.
|
Still doesn't work for me, even after I changed the IP I still get a error and can't connect...
|
I noticed.
Keep this thread up to date. I would like to see how far this goes. Quote:
|
splinter, change the ip address to the ip of your computer, you can just use localhost
|
| All times are GMT -5. The time now is 8:01 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC