problem with socketID

Zac Elston zelston at aol.com
Fri Nov 15 17:01:00 EST 2002


I can open and read/write to a socket with

on mouseup
  open socket to "host:25"
  read from socket "host:25"until linefeed
  answer it
  close socket "host:25"
end mouseup

but when I try to use a socketID, it does not work.

on mouseup
  open socket to "host:25|mysocketname"
  read from socket mysocketname until linefeed
  answer it
  close socket mysocketname
end mouseup

in fact, using a socketID at all seems to be the problem..
this doesn't work either
on mouseup
  open socket to "host:25|mysocketname"
  read from socket "host:25" until linefeed
  answer it
  close socket "host:25"
end mouseup


tried both windows 2000 and OSX

what am I missing?


thanks

-zac





More information about the use-livecode mailing list