
Creating a buddy system like MSN, Yahoo, AOL using VB. HELP!!
Quote:
> I'm new to Visual Basic but I'm quite good at VBA. At the moment though
I'm
> trying to get into creating VB Applications 4 websites. I need to create a
> chatroom, buddy system and instant messaging solution via VB.
> Apparently there is no such thing as just server-push, u need the client
> asking before the server can push tings down to that asking client.
> I'm wondering how do these other companies (MSN, Yahoo, AOL) updates there
> buddy system only when someone logs on/off?
> Is there buddy application constantly asking 4 info from the server or is
> the server is only sending the buddy application info when an event
happens
> (someone logs off/someone send an instant message).
With MSN etc, the clients maintains a TCP connection to the server, using
it's own protocol. They do not use the HTTP (web) protocol, which is where
the client would keep having to ask for information.
If you're writing VB, use the Winsock Control to open a TCP connection.
There is a good example of a real-time chat program in the help for that
contol, so start there.
HTH
Peter
--
Peter G Sheppard /"\ ASCII RIBBON
peter (at) petersheppard (dot) com \ / CAMPAIGN AGAINST
http://www.petersheppard.com X HTML EMAIL
/ \ AND POSTINGS
CAUTION: This message may contain traces of nut!
Conclusion about dropped objects - the smaller the object and the greater
its
intrinsic value, the further it will be from where you expect it,
regardless of what you think you heard.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002