I am doing a chat website. I have the client side working but don't know how to connect to server. I am coding in c#. Can someone help me.
chat applicationchat application
Page 1 of 1
5 Replies - 1984 Views - Last Post: 31 May 2010 - 11:02 PM
Replies To: chat application
#2
Re: chat application
Posted 19 May 2010 - 07:22 PM
Look up socket programming...
-Masoug
-Masoug
#3
Re: chat application
Posted 19 May 2010 - 07:54 PM
Moved to C#. Please post your help questions in the proper language forum
#4
Re: chat application
Posted 19 May 2010 - 08:02 PM
Last month I had to create a chat application for my course.
I used:
1. Windows Forms for the client applications, these communicate via a Service Reference in the application.
2. A WCF application hosted on a server to handle incoming/outgoing messages sent from the N number Client applications.
Here's a great tutorial (with working example) so you can see how it works: LINK
I used:
1. Windows Forms for the client applications, these communicate via a Service Reference in the application.
2. A WCF application hosted on a server to handle incoming/outgoing messages sent from the N number Client applications.
Here's a great tutorial (with working example) so you can see how it works: LINK
#5
Re: chat application
Posted 19 May 2010 - 09:19 PM
Yeah that is a pretty good bit of example code stapia.gutierrez. Thanks for sharing.
#6
Re: chat application
Posted 31 May 2010 - 11:02 PM
Look up Cgi, its pretty easy.
Multiple ways to set up a chat system. You can either have a hidden frame to communicate information with a dynamic javascript page. A Php page that can query the server without needing a secondary frame. Or last you could have a page that is on an auto refresh, reading a page that the server side c# creates.
I use apache, can change put any c# files in cgi-bin and the root file for your site will be htdocs(these can be changed). Anything within the cgi-bin will be executed, you can send form to there (via method:"POST") where the exe will update the page. Apache will be set to take input via port 80, so make sure your firewall does not block that and that you forward it through your router.
Look up anything you don't understand. If you don't understand frames search up "HTML frames" as well.
Multiple ways to set up a chat system. You can either have a hidden frame to communicate information with a dynamic javascript page. A Php page that can query the server without needing a secondary frame. Or last you could have a page that is on an auto refresh, reading a page that the server side c# creates.
I use apache, can change put any c# files in cgi-bin and the root file for your site will be htdocs(these can be changed). Anything within the cgi-bin will be executed, you can send form to there (via method:"POST") where the exe will update the page. Apache will be set to take input via port 80, so make sure your firewall does not block that and that you forward it through your router.
Look up anything you don't understand. If you don't understand frames search up "HTML frames" as well.
Page 1 of 1
|
|

New Topic/Question
Reply
MultiQuote








|