Reading from data from socket does not work on MacOS X

Mark Schonewille europe at ehug.info
Wed Apr 6 20:47:17 EDT 2005


Alex,

Obviously, you're right. I copied the connected and readSocket 
handler and added the foo handler later. Anyway, with or without 
message "connected", it doesn't work. Any ideas?

Mark


Alex Tweedly wrote:
> Mark Schonewille wrote:
> 
>> Hello,
>>
>> I am trying to create a server that handles POST actions from web 
>> forms. Rather than using cgi, I read the socket and handle the 
>> request. If the request contains the data from the web form, it is 
>> written to a file. This works fine if the server is running MacOS 9, 
>> but not on MacOS X.
>>
>> The test script is fairly simple:
>>
>> on foo
>>   accept connections on port 8181
>>   -- may test for result
>> end foo
>>
> Shouldn't that be
>   accept connections on port 8181 with message "connected"
> 
> (Though I have no clue why that would work on OS9 and not on OS X  ..... 
> I'm hoping you made a  typo in copying)

-- 

eHUG coordinator
mailto:europe at ehug.info
fax: +1 501 633 94 04
http://home.wanadoo.nl/mark.sch
http://www.ehug.info



More information about the use-livecode mailing list