Re: Reading from a socket
Re: Reading from a socket
- Subject: Re: Reading from a socket
- From: Robert MacGregor <email@hidden>
- Date: Sun, 21 Aug 2005 19:30:34 -0400
JJ,
Thank-you; you saved me a lot of wasted time. I decided to use socket
access via Java and it's working well. :-)
Rob
On 19-Aug-05, at 4:35 PM, jj wrote:
Hi,
How can I read data from a socket?
In XCode/Applescript Studio I tried:
set socket to make new Internet address with properties {dotted
decimal form:"224.0.113.101", port:9876}
(*open for access socket with read permission*)
log socket
set stuff to (read socket)
log stuff
I don't think you can use "Internet address" this way. This is a class
related to the "host" property of the URL class. Eg:
set x to "http://www.google.com/" as URL
--> {class:URL, scheme:http URL, path:"http://www.google.com/",
host:{class:Internet address, DNS form:"www.google.com", port:80,
dotted
decimal form:"66.249.93.99"}}
But it doesn't provide sockets access. You need something as LE
STANG's XNet
1.0:
http://lestang.org/article.php3?id_article=20
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden