Re: Reading from a socket
Re: Reading from a socket
- Subject: Re: Reading from a socket
- From: jj <email@hidden>
- Date: Fri, 19 Aug 2005 22:35:11 +0200
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden