problem with socketID
Dar Scott
dsc at swcp.com
Fri Nov 15 18:59:01 EST 2002
On Friday, November 15, 2002, at 02:54 PM, Zac Elston wrote:
> on mouseup
> open socket to "host:25|mysocketname"
> read from socket mysocketname until linefeed
> answer it
> close socket mysocketname
> end mouseup
This looks like the trouble area.
on mouseup
local mySocket
put "127.0.0.1:25|mysocketID" into mySocket
open socket to mySocket
read from socket mySocket until linefeed
answer it
close socket mySocket
end mouseup
Use the socketId if you might be creating two (or more) connections to
port 25 on the same computer at the same time. For example, you might
have code in one place sending mail on an alarm and code in another
place sending mail for regular reports; they might use a common queue
for other code or independently connect--the latter needs the use of the
socketID.
Dar Scott
More information about the use-livecode
mailing list