Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old August 27th, 2008, 11:15 PM
phider1
Guest
 
Posts: n/a
Default TCP-based chat program

I wrote a little UDP-based chat program. It's not very user-friendly,
requiring every user to add every other user to a list. Anyway, I
want to adapt it to TCP so you don't have to do that, as well as the
ability to talk to people behind firewalls without reconfiguring them.
The first problem I have is how to have the server application relay
messages to all the clients. The other problem is how to format the
output on the client application so that it can show what other people
are saying as well as having a prompt at the bottom. Currently I have
2 seperate apps, one that listens for incoming messages, and one to
send messages, but I don't think that'd work with TCP.

The UDP app is available for DL here, if anyone is interested.
http://sodasphere.us.to/pub/yipee
  #2  
Old August 27th, 2008, 11:25 PM
Andrew Poelstra
Guest
 
Posts: n/a
Default Re: TCP-based chat program

On 2008-08-27, phider1 <phider1@gmail.comwrote:
Quote:
I wrote a little UDP-based chat program. It's not very user-friendly,
requiring every user to add every other user to a list. Anyway, I
want to adapt it to TCP so you don't have to do that, as well as the
ability to talk to people behind firewalls without reconfiguring them.
The first problem I have is how to have the server application relay
messages to all the clients. The other problem is how to format the
output on the client application so that it can show what other people
are saying as well as having a prompt at the bottom. Currently I have
2 seperate apps, one that listens for incoming messages, and one to
send messages, but I don't think that'd work with TCP.
>
comp.programming would be better for general program design.
For specific platforms or network protocols, there are more
specific groups to try.

comp.lang.c deals with standard C which does not natively
support TCP or UDP.

--
Andrew Poelstra apoelstra@wpsoftware.com
To email me, use the above email addresss with .com set to .net
  #3  
Old August 27th, 2008, 11:35 PM
phider1
Guest
 
Posts: n/a
Default Re: TCP-based chat program

On Aug 27, 6:21*pm, Andrew Poelstra <apoels...@supernova.homewrote:
Quote:
On 2008-08-27, phider1 <phid...@gmail.comwrote:
>
Quote:
I wrote a little UDP-based chat program. *It's not very user-friendly,
requiring every user to add every other user to a list. *Anyway, I
want to adapt it to TCP so you don't have to do that, as well as the
ability to talk to people behind firewalls without reconfiguring them.
The first problem I have is how to have the server application relay
messages to all the clients. *The other problem is how to format the
output on the client application so that it can show what other people
are saying as well as having a prompt at the bottom. *Currently I have
2 seperate apps, one that listens for incoming messages, and one to
send messages, but I don't think that'd work with TCP.
>
comp.programming would be better for general program design.
For specific platforms or network protocols, there are more
specific groups to try.
>
comp.lang.c deals with standard C which does not natively
support TCP or UDP.
>
--
Andrew Poelstra * * * * * * * * * * * *apoels...@wpsoftware.com
To email me, use the above email addresss with .com set to .net
Thanks, I'll go repost there.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.