I have 2 movies, one acting as the host, the other as the peer.
The host has a "wait" button in it, with the following script:
global gconn
on mouseUp me
gconn = new(xtra "multiuser")
gconn.setnetmessagehandler(#defaultHandler, me)
gconn.waitForNetConnection("Pranav", 1626)
end
on defaultHandler me
put gconn.getnetmessage()
end
The peer movie has a "connect" button with a script like so:
global gconn
on mouseUp me
gconn = new(xtra "multiuser")
gconn.setnetmessagehandler(#defaultHandler, me)
gconn.connecttonetserver("Keh", "", "192.168.0.103", 1626, "chat")
end
on defaultHandler me
put gconn.getnetmessage()
end
The host movie gets the request for the connection. Here's what is output
in the message window.
-- [#errorCode: 0, #recipients: ["Pranav"], #senderID: "System", #subject:
"WaitForNetConnection", #content: [#userID: "Keh", #password: "", #movieID:
"chat"], #timeStamp: 9222110]
However, the connection is refused for some reason. I can't figure out why.
After the initial message in the host, both movies throw similar looking
errors in the message window, which goes like this:
Host movie:
-- [#errorCode: -2147216214, #recipients: ["Pranav"], #senderID: "System",
#subject: "ConnectionProblem", #content: "Keh", #timeStamp: 9222280]
Peer movie:
-- [#errorCode: -2147216214, #recipients: [""], #senderID: "System",
#subject: "ConnectionProblem", #content: "Keh", #timeStamp: 9974102]
put gconn.getneterrorstring(-2147216214)
-- "There is no current connection"
I tried going thru the sample files and manuals on Macromedia's site, but
they didn't help me figure wot I was doing wrong. Can someone shine a light
here please?
Regards,
Pranav
-----------------------------------------------------------
"Simply stated, it is sagacious to eschew obfuscation."
--Norman Augustine
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]