realbasic-nug
[Top] [All Lists]

Re: MultiCast Packets, read/write

To: "REALbasic Network Users Group" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: MultiCast Packets, read/write
From: Seth Willits <seth at freaksw dot com>
Date: Thu, 8 Jan 2004 16:28:50 -0800
References: <200401082130 dot i08LUZS30192 at c3po dot mindtel dot com> <24BF3E10-4237-11D8-A829-000393B65F6A at ideationsllc dot com>
On Jan 8, 2004, at 4:02 PM, Tim Murphy wrote:

Should I look elsewhere then rb for this?

Nope. It's easy as pie. In a nutshell, bind a UDP socket to a port (by setting the port value and calling Connect), join a multicast group (using JoinMulticastGroup) and wait for the DataAvailable event to fire. When it does, read the datagrams received using dg = me.Read and do what you want with it. Writing is as simple as using the Write method.

You should be able to get an application running an an hour.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"To be a great is to be misunderstood."
    -- Ralph Waldo Emmerson
------------------------------------------------------------------------ ---


- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>