• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading from a socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Reading from a socket
      • From: Robert MacGregor <email@hidden>
References: 
 >Reading from a socket (From: Robert MacGregor <email@hidden>)

  • Prev by Date: Re: Finder f*ck-ups
  • Next by Date: Re: Finder scriptability
  • Previous by thread: Reading from a socket
  • Next by thread: Re: Reading from a socket
  • Index(es):
    • Date
    • Thread