Can any of you give me some ideas on how to create a chat client/server so i could run the server on my pc and about 5-10 friends connect to it?
Printable View
Can any of you give me some ideas on how to create a chat client/server so i could run the server on my pc and about 5-10 friends connect to it?
Microsoft Winsock Control.
Try searching, there are a million examples on this forum and the net.
You may be better off just reading a tutorial on the Winsock control itself. After that it will be pretty easy to make a chat program... or whatever else you want.
Hmm now sorry but i couldn't be bothered starting a new topic since it relates. But how exactly would you run your PC as a server im confused about how to go about it. I work with the winsock control alot when i make chat clients for game servers and just IP based chat clients. But i am unsure of how to go about running my PC as a server any answers or information???
Hi
Does my attached file in
http://vbforums.com/showthread.php?t=445844
Help?
I'm not sure if looking at this code could help you but anyway, it uses the MSN network, a Windows Messenger clone in the codebank.
http://www.vbforums.com/showthread.php?t=325908
example 1: http://pscode.com/vb/scripts/ShowCod...21901&lngWId=1
example 2:
http://pscode.com/vb/scripts/ShowCod...21948&lngWId=1
example 3:
http://pscode.com/vb/scripts/ShowCod...51924&lngWId=1
example 4:
http://pscode.com/vb/scripts/ShowCod...53167&lngWId=1
example 5:
http://pscode.com/vb/scripts/ShowCod...=3266&lngWId=1
Just search for 'multi chat' @ www.pscode.com/vb
hell lord to make your computer the server you have a different program to everyone else, this server program is where everyone will connect to and talk, the others will have a client program which will connect to your server when they are ready.
Seems difficult to make a server program for all clients to connect to. Im use to connecting to other servers.
The only difference between your computer and a "server" is that you call the other computers "servers". The computer itself is exactly the same. (If you're behind a router you have to forward ports to the computer, but the computer doesn't change, from its role as a client to its role as a server.) The only thing that determines whether a particular computer is acting as a client or a server is the program running on it. If you run your email program, the computer is a mail client. If you run a chat server program on that same commputer (even at the same time) the computer is running as a chat server.Quote:
Originally Posted by Hell-Lord
Have you checked out the link which I pasted in post#4?Quote:
Seems difficult to make a server program for all clients to connect to. Im use to connecting to other servers.