Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Show Off Your Open Source Projects (http://www.programmingforums.org/forum52.html)
-   -   Chiba Instant Messenger (http://www.programmingforums.org/showthread.php?t=10267)

Brent Jun 9th, 2006 6:31 PM

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.

jayme Jun 9th, 2006 6:52 PM

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.

splinter9x Jun 9th, 2006 6:56 PM

I think you need to include the server in the download file. All you put up for download is the client...

Brent Jun 9th, 2006 7:10 PM

as I stated above, this application is both a client and a server.

Brent Jun 9th, 2006 7:11 PM

@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"

jayme Jun 9th, 2006 7:15 PM

Alright, works fine. Multi-threading might be a bit much for this. Why not use select()ing sockets or windows messages?

Brent Jun 9th, 2006 7:22 PM

Its already configured to use select(), but still needs some work, although I think windows messages would work alot better considering its using winsock.

splinter9x Jun 9th, 2006 7:23 PM

Still doesn't work for me, even after I changed the IP I still get a error and can't connect...

jayme Jun 9th, 2006 7:23 PM

I noticed.

Keep this thread up to date. I would like to see how far this goes.

Quote:

Originally Posted by splinter9x
Still doesn't work for me, even after I changed the IP I still get a error and can't connect...

Are you going into the options tab and starting the server before you attempt to connect?

Brent Jun 9th, 2006 7:29 PM

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