• 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: 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
References: 
 >Re: Reading from a socket (From: jj <email@hidden>)

  • Prev by Date: on run, Expected a reference
  • Next by Date: Re: on run, Expected a reference
  • Previous by thread: Re: Reading from a socket
  • Next by thread: [OT] Why don't I read anything about what is happening? Are we censored to talk about his?
  • Index(es):
    • Date
    • Thread