question about sockets
Dar Scott
dsc at swcp.com
Mon Oct 28 10:39:01 EST 2002
On Monday, October 28, 2002, at 04:25 AM, Ian Summerfield wrote:
>> first I open the outgoing socket:
>> open datagram socket to "127.0.0.1:4038|local"
>
> You don't need to open the socket, just use accept datagram alone.
I assumed he meant for the sending part of the set up, perhaps in another
stack for testing (but maybe on the same card for experimenting). If that
is the case, he would need to open the socket.
The sender open and the accept open can occur in any order. The accept has
to occur before the sender write, of course.
A simplification for experimenting: If performance is not an issue and
datagrams are not sent that often, the sending handler can simply
open-write-close every time, simplifying the first pass of design.
Another thing I didn't mention before: I think watching the openSockets()
while trying this as Bjornke seems to be doing is a very good idea.
Dar Scott
More information about the use-livecode
mailing list