|
-
September 11th, 2001, 02:41 PM
#1
Network Programming, perhaps??
Hi.
I'm trying to create some communication bridge between server and client... or client to server to client... something like instant messengers, I guess.
I understand it has to do with TCP/IP and all that to come up with "instant"-ness in delivering the messages.
I'm trying to build a homepage with membership.. and when the user logs in, the server could "push" any message to the user and the user should get it right away.
Can you give some suggestions or redirect me to some good resources to how to go about building this?
My homepage is created using ASP and SQL Server so far...
thanks..
-
September 12th, 2001, 02:21 AM
#2
Re: Network Programming, perhaps??
'If you are in a Lan, you may take advantage of NetSend
'warning: Requires Windows NT 3.1 or later; Win9x/me: Not supported
private Declare Function NetMessageBufferSend Lib _
"NETAPI32.DLL" (yServer as Any, yToName as Byte, _
yFromName as Any, yMsg as Byte, byval lSize as Long) as Long
private Const NERR_Success as Long = 0&
public Function SendMessage(RcptToUser as string, _
FromUser as string, BodyMessage as string) as Boolean
Dim RcptTo() as Byte
Dim From() as Byte
Dim Body() as Byte
RcptTo = RcptToUser & vbNullChar
From = FromUser & vbNullChar
Body = BodyMessage & vbNullChar
If NetMessageBufferSend(byval 0&, RcptTo(0), byval 0&, _
Body(0), UBound(Body)) = NERR_Success then
SendMessage = true
End If
End Function
private Sub Form_Load()
'Example created by X-MaD ([email protected])
'Visit his website at http://www.zolnetwork.com/x-mad
Dim RetVal as Boolean
RetVal = SendMessage("Utente", "FromUser", "BodyText")
End Sub
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
September 12th, 2001, 10:12 AM
#3
Re: Network Programming, perhaps??
Thanks for the reply..
I understand that that only works for the machines in the same LAN...having NT 3.1+...
But what I'm trying to do is for pretty much any computer that visits my homepage.
Good example maybe online game sites such as zone.msn.com... They seem to do that.. for example, users sending private intstant messages to other users currently online.
I'm pretty sure that's not done through the use of NetSend...
I'll appreciate your help..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|