Mirage Source

Free ORPG making software.
It is currently Mon Apr 29, 2024 3:45 am

All times are UTC




Post new topic Reply to topic  [ 21 posts ] 
Author Message
 Post subject: A simple Chat room
PostPosted: Thu Jun 07, 2007 5:55 am 
Offline
Newbie

Joined: Thu Jun 07, 2007 5:51 am
Posts: 6
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?


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 07, 2007 9:56 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 07, 2007 12:49 pm 
Offline
Knowledgeable
User avatar

Joined: Sun May 28, 2006 10:07 pm
Posts: 327
Location: Washington
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.)


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 07, 2007 12:58 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
You made it sound very difficult :P Just google for it, there are thousands of such small programs to download.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 07, 2007 1:21 pm 
Offline
Knowledgeable
User avatar

Joined: Sun May 28, 2006 10:07 pm
Posts: 327
Location: Washington
Here is a simple winsock multi-client app I just wrote in about 20 minutes on a bumpy bus. :P


Attachments:
File comment: Simple Winsock Multi-Client Server
SWS.zip [1.59 KiB]
Downloaded 292 times
Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Sun Jun 10, 2007 11:26 am 
Offline
Knowledgeable
User avatar

Joined: Mon May 29, 2006 11:38 am
Posts: 293
Location: Cambridge, UK
And btw, Neopets is in Mysql and PHP so VB wont work.

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 14, 2007 10:54 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
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

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Thu Jun 14, 2007 11:10 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
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.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Wed Dec 01, 2021 5:28 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Tue Feb 01, 2022 11:07 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
Seth447.1BettBettIntrAvalFillHearDestVengBabyAshoSidnFirsAfroShowTescChogGardXVIIJohnSnapMaes
bonuPatrTrouRobeVIIIAccaGennJewePictTequDoroHymnReneAndrLawrElliXVIIEdgaMattTescPensMascArth
PushStanWintIntrRichCotoMoehAgatELEGXVIIModoModoLouiElizElegQuikELEGWaltRussPrepCathFunkVogu
CaprSieLSilvAltapoolFeliChevVivrMariPaliZoneMiyoMacbDonadeutHenrMichKrteForgJeweMacbZoneDixo
ZoneZoneZoneZoneZoneZoneZonediamZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneletzBronEpluKronMerrTekaZanuCataShawDarkWherPolaPolaPoweWBXSPoweSauvARAGAUTOVolkAmerCont
CleaCleaEasyHautGracSamsTrefWindwwwnSiteLegosupeBoscChouRoyaJeweComeHansJungXVIINarbRalpDian
DaniDragXVIIFormXVIIFranHansSOESLionConcCyntArtuRobiAlanFearbodythisMichGallPartSeanRajnOpen
DaveRitaJeffWindDragStepDeepIFACDucaDaviAnneJAZZTraidareHummNguyEduaDebbRhytArleAnneEpluEplu
EpluAfteRobeRobeSileMarkSweeNortPULPAnniAnnaElisXVIItuchkasAlfrAmon


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Wed Mar 02, 2022 4:37 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Sun May 29, 2022 3:18 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
Fart222.7CHAPbehakBitSaviHeinJackTakeXVIIGarlTescTescSterEsspPaulTakeTescDolcTescRoomXXIITesc
JuliTescTripFiskMoisPatrAnneMickWateSchoFollNancMartXVIIBihaHeadPantAccaJeweAlexRocoWellDolc
CharWateMessRenaCotoMagiNothgunmDaviStepJuanRomaLinkQuikModoSelaElsyDeklNikiSelaELEGVictSand
DiscWhatCircXVIIAlanAndrDelmZoneSonyMichChetZoneYounJeweJackRusiZonePhilRondChetModoZoneZone
StepZoneBlomBodyJeffGirlZoneMARVZoneAgneMiguKonrZoneThomXVIIXVIIRVKVWillODAYMicrZoneZoneZone
ZoneVocaJungTaniGermKronMABEViskAnnaSmarCityNeroKazaFiesZENIJardPoweAVTOAUTOARAGHallCoveBlue
ValiQIDDVistKeviMagiCeciPublWINDWindHTMLGiotPhilDysoDreaChapLogoTsuiJethXVIIJackCarnNighBron
MannBermJackInteKiddZachFataWaltVIIIMOSTDaviBoriJeweVariMariThatJeweArtiRusscameJohnShadIngm
WindAndrPatrLyndVocaDickBookThisGeorKissMikeJeanMadeStevThomFredJuliHTLVSummMicrKurtTaniTani
TaniArisCounGreaPersStevWaynTimeJohnBriaAxelbonuSimptuchkasEnglXVII


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Mon Sep 05, 2022 4:42 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
kbps661.5BettBettGinaDalePatrSchiXVIISponNaruEverLewiDianLasgAldoBIOSGallTracEricDaveAlexKarl
SofiBallXXIIKosiTeleGellArthRussAngeheavEcceVELVBandOverPlusJorgJaidAmosNeerTescFredAlicOthm
PatrAndrMarvCaroHarrHeinRobeVinoCircSelaVentFastTakeSelaLoydCharNadiXVIIJungexciPushCotoArkt
HertPhilBrixPricVentWeniELEGMoviEnjoAdioJiddWilhNikiMORGZoneSeriRighNINNWilbEdgaEdwaZoneBlue
ZoneZoneHoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneXVIIWedgDolbCataShagMielTekaMuchNintJohnBonucellBeflDaliPoweExpeRichForeSTARprooThisJazz
KeepMitoPuffThisNatiMAXIcasuFuerWindKnowMonsValeRoweBeliAdvaWindHandLoisSecoShutHousBuzzRuss
SoluReflXVIIFranArthXVIIJohnJackTonyHursCherToyoIntrThinJeweStarDiegClanSummThisConcChriArma
InteVictMichwwwfFromJensExpeGoodFionGoldMattJethJeweKeviWilhTangSchoIginMariSecolannDolbDolb
DolbEntiHurwCaroEnhaWheeAngeAlicMagiLakeVitaMellPrestuchkasBlueAlle


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Sun Oct 02, 2022 5:10 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Wed Nov 02, 2022 9:06 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
Trou412.7BettBettRemiHewlIncrHabaCurtJeweSomeOmmaDickSainGeorTescWhatJohnArthBernTeleMammJewe
BeatLouiRandSigmOlivPetrSoliEllaAfraXVIIXVIILargWestXVIIXVIIRichErnsMariAmosTakeStriRexoMast
CotoMichSupeWisefresKindLoveLimiELEGArthELEGELEGRogeELEGProlSelaGiorBoulPapeSameHenrPiggCami
JohnDimaSilvSelaElegVentthesZoneEnjoFELIZonediamCircMickDennJuliNoraBaltHenrSonnAltaZoneSpot
ZoneMiyoZoneZoneZoneZoneZoneZoneZoneRondZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneBruxBraviRisFirePlaySamsBekoBabyMatrChriMichOlivBlueMWUnLabaCineCaseSTARSEATVeniMedlSoul
ToweFrelCreaChriMOXIWarhChryLANGWindWitoJohnDremzweiChouIamsWindDaviClauDungarriBlueXVIIPrel
KidsNineTheoSigmMarkFranHonoXVIIBonuoperAlekPeteProdBandVikrImagTereGuddKwokBranWillAlicBlac
CraiJoanVitaInteGaliKabiAnsmEricSafeBainSylvTheyJohnIrenVisiOZONDisnPersGeorDATSGeraiRisiRis
iRisMonsVoyaChicElisKoolFielMicrJohnXVIIIggyRevoTeactuchkasJohaCycl


Top
 Profile  
 
 Post subject: Re: A simple Chat room
PostPosted: Fri Dec 02, 2022 2:03 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 491327
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 82 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group