Click here to Skip to main content
Licence 
First Posted 18 Mar 2001
Views 172,641
Bookmarked 50 times

Chat program

By | 2 Dec 2002 | Article
Simple chat program.

Sample Image - CSocket.jpg

Introduction

This very simple Chat program was written by using VC++ 6 under Windows 2000. CSocketCli program creates a client socket. CSocket program creates a server socket. If you run the client program, you must specify the address of the other computer in the IP Address editbox in "the server program".

If the client is running but the server isn't running, you will receive an error in the editbox down in the client program, but if you connect you will receive "Connected" message in the chat editbox in the client program.

When you run the server, you don't need to do any thing; just wait until some client program connects with the server. This program handles multiple clients and you can have private chat with friends.

Important note: If you run the Client and the Server in the same computer, please write in the client IP Address textbox the address 127.0.0.1, then press Connect button and you will be connected to the server.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

essam el-nagar

Software Developer (Senior)

Saudi Arabia Saudi Arabia

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralFirewall PinmemberAlexEvans23:22 21 Aug '10  
Questionhow are you Pinmembercen_jin_long12:41 22 Feb '10  
GeneralDownload = 0kb Pinmembercodeinelogic7:53 8 Jan '09  
GeneralRe: Download = 0kb Pinmembercodeinelogic8:02 8 Jan '09  
GeneralThank you. PinmemberMember 232736922:01 13 May '08  
Generalhome edition Pinmembervishal dhir20:16 24 Feb '07  
Questionhow to use it in campus PinmemberMember #36815790:05 30 Dec '06  
Questionhow to use it in campus PinmemberMember #36815790:04 30 Dec '06  
Questionwhat is socket programming Pinmembermahili21:28 19 Nov '06  
AnswerRe: what is socket programming Pinmemberkkyaw8810:45 23 Feb '07  
Generalvery usefull Pinmemberfserdary4:51 9 Aug '06  
Generalgood code PinmemberSujitmatrix4:21 2 May '06  
Generalexcellent sample code PinmemberGeorge98765432122:15 22 Mar '06  
GeneralCMD PinmemberPablo98311:37 6 Mar '06  
Generalgood job~~ Pinmemberrosenus4:58 12 Feb '06  
GeneralCheck the status Wether Connect to the internet or not PinmemberKutti Ra23:07 30 Sep '05  
Generalover the internet Pinmembermesut_pak5:44 12 Mar '05  
GeneralRe: over the internet PinmemberXiaozhou Ye21:10 6 Nov '05  
Questionhow to make one application work as a server and client simultaneously Pinmembersyaks7:19 29 Nov '04  
GeneralTransmit Image File PinmemberKeel20:15 15 Jan '04  
GeneralIPnr in list box PinmemberJockeP18:41 24 Aug '03  
GeneralBind Error PinmemberHazem Nasereddin2:54 7 Jan '03  
GeneralRe: Bind Error Pinsusskaizer5:45 25 Jun '03  
GeneralThanks... PinmemberMustafa Bayer8:45 4 Dec '02  
GeneralChat With US DI PinmemberDany Cantin16:56 26 Nov '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120515.1 | Last Updated 3 Dec 2002
Article Copyright 2001 by essam el-nagar
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid