Sockets

Bob Sneidar bobs at twft.com
Thu May 6 11:28:33 CDT 2010


Shouldn't you put it AFTER fld "f1" if you are tracing it?

Bob


On May 5, 2010, at 3:19 PM, Hershel Fisch wrote:

> Hi, I checked it out,
> I did realize that there are 2 ports being used 1 form client to server and
> 1 from server to client. Though I don't know how to make use of it in my
> case.
> Also I think there is a typo in tnhe example script (sSocket instead of
> pSocket) or something doesn't work properly.
> 
> I did get some info from it.
> 
> NOW, This what I wrote;
> 
> on mouseUp
>   put "192.168.1.199:4559" into pSocket
>   open socket to pSocket
>   read from socket pSocket until return
>   put it into fld "f1"  -----to trace results
> 
>   write "USER admin" & linefeed & "PASS xxxxxx" to socket pSocket
>   read from socket pSocket until return
>   put it into fld "f2" of this stack
> 
>   write  "/usr/local/sbin/hfaxd help" & linefeed to socket pSocket
>   read from socket pSocket until return
>   put it into fld "f3" of this stack       ----looks like it reenters the
> same command twice
>   close socket pSocket
> Now if I repeat the second write twice then this is what I get...........
> 
> 500 /USR/LOCAL/SBIN/HFAXD: Command not recognized.
> 
> end mouseUp
> 
> Any help would be highly appreciated.
> Thanks, Hershel
> 
> 
> 
> On 4/29/10 3:24 PM, "Hershel Fisch" <hershrev at syp2u4c.com> wrote:
> 
>> Thanks, I'll check it out.
>> Hershel
>> 
>> 
>> On 4/28/10 9:04 AM, "Trevor DeVore" <lists at mangomultimedia.com> wrote:
>> 
>>> On Apr 27, 2010, at 4:23 PM, Hershel Fisch wrote:
>>> 
>>>> Hi, could any help me out with a full socket session ? Please!
>>> 
>>> Perhaps this lesson will help:
>>> 
>>> 
> http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/12924-How-to-com>>
> m
>>> unicate-with-other-applications-using-sockets
>> 
>> 
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list