![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 251
Rep Power: 4
![]() |
Chiba Instant Messenger
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.
|
|
|
|
|
|
#2 | |
|
Professional Programmer
|
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.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Jun 2006
Posts: 137
Rep Power: 0
![]() |
I think you need to include the server in the download file. All you put up for download is the client...
|
|
|
|
|
|
#4 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 251
Rep Power: 4
![]() |
as I stated above, this application is both a client and a server.
|
|
|
|
|
|
#5 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 251
Rep Power: 4
![]() |
@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" |
|
|
|
|
|
#6 | |
|
Professional Programmer
|
Alright, works fine. Multi-threading might be a bit much for this. Why not use select()ing sockets or windows messages?
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#7 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 251
Rep Power: 4
![]() |
Its already configured to use select(), but still needs some work, although I think windows messages would work alot better considering its using winsock.
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: Jun 2006
Posts: 137
Rep Power: 0
![]() |
Still doesn't work for me, even after I changed the IP I still get a error and can't connect...
|
|
|
|
|
|
#9 | ||
|
Professional Programmer
|
I noticed.
Keep this thread up to date. I would like to see how far this goes. Quote:
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
||
|
|
|
|
|
#10 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 251
Rep Power: 4
![]() |
splinter, change the ip address to the ip of your computer, you can just use localhost
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|