Mirage Source http://web.miragesource.net/forums/ |
|
A simple Chat room http://web.miragesource.net/forums/viewtopic.php?f=201&t=1987 |
Page 1 of 1 |
Author: | Nintendork [ Thu Jun 07, 2007 5:55 am ] |
Post subject: | A simple Chat room |
I wana make a simple chat room to get the basics of a clint/server comunication. however I have no idea how to even start. I DO know VB preay well. so how could I make one? ALSO can this server be used to host a web game, like Neopets? |
Author: | William [ Thu Jun 07, 2007 9:56 am ] |
Post subject: | Re: A simple Chat room |
You can easily google for "vb Winsock Chat" and find an example, its very easy to construct a chat. I dont know what Neopets so cant help you there. |
Author: | Verrigan [ Thu Jun 07, 2007 12:49 pm ] |
Post subject: | Re: A simple Chat room |
The requirements for a basic VB winsock server are really fairly simple, once you get the hang of it.. Add a Winsock control to a form. Make sure you set its index to 0. (This way, it will become an array of winsock controls) Then, tell the control to start listening on a specific port. When connections are made, create new winsock controls in the index, and have that new connection accept the connection request. Once you have the basics of that down, you can start handling the data sent to the server. I suggest you start with something like this, and move up to API later. The need to understand the Winsock control is very minimal compared to all the things you have to do with API.. Though API is better, and less buggy. Check out http://www.planetsourcecode.com for lots of server-client examples.. (Or just browse through the MSE source to see how sockets are done.. though MSE does it slightly different than I described above.) |
Author: | William [ Thu Jun 07, 2007 12:58 pm ] |
Post subject: | Re: A simple Chat room |
You made it sound very difficult Just google for it, there are thousands of such small programs to download. |
Author: | Verrigan [ Thu Jun 07, 2007 1:21 pm ] | ||
Post subject: | Re: A simple Chat room | ||
Here is a simple winsock multi-client app I just wrote in about 20 minutes on a bumpy bus.
|
Author: | Reece [ Sun Jun 10, 2007 11:26 am ] |
Post subject: | Re: A simple Chat room |
And btw, Neopets is in Mysql and PHP so VB wont work. |
Author: | Tosuxo [ Thu Jun 14, 2007 10:54 pm ] |
Post subject: | Re: A simple Chat room |
Renegade wrote: And btw, Neopets is in Mysql and PHP so VB wont work. well in theory it's possible, but it wouldn't be the same, e.g. you have a form with like "feed pet" and it sends the data to the server and it sends new hunger etc for the pet back but php would be muuuuuch better so really it's for browsers only |
Author: | Robin [ Thu Jun 14, 2007 11:10 pm ] |
Post subject: | Re: A simple Chat room |
Tosuxo wrote: Renegade wrote: And btw, Neopets is in Mysql and PHP so VB wont work. well in theory it's possible, but it wouldn't be the same, e.g. you have a form with like "feed pet" and it sends the data to the server and it sends new hunger etc for the pet back but php would be muuuuuch better so really it's for browsers only He said server, not client. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |