Re: sockets post to url

2010-09-02 Thread Monte Goulding
ah... scratch that, nothing to see here On 02/09/2010, at 5:14 PM, Monte Goulding wrote: Hi I have an app that accepts connections on a socket to sync to an iOS version. post to url works before and after: accept connections on port lPort with message newConnection -- lPort is 8009 as

Re: sockets post to url

2010-09-02 Thread Andre Garzia
Monte, can you detail how you solved this for future mail list search abilities! :D On Thu, Sep 2, 2010 at 4:27 AM, Monte Goulding mo...@sweattechnologies.comwrote: ah... scratch that, nothing to see here On 02/09/2010, at 5:14 PM, Monte Goulding wrote: Hi I have an app that accepts

Re: sockets post to url

2010-09-02 Thread Monte Goulding
LOL, just a bug in my code mate. Was closing line 1 of the opensockets which was fine when the licensing stuff was happening in a separate process but not when I put it back in the main app ;-) On 03/09/2010, at 12:45 AM, Andre Garzia wrote: Monte, can you detail how you solved this for

Re: sockets post to url

2010-09-02 Thread Andre Garzia
Once I built a web server in Rev... for a while, I tried testing it by building a client also in Rev. Now, when everything is running at the same time inside Rev IDE, things can get messy... On Thu, Sep 2, 2010 at 7:03 PM, Monte Goulding mo...@sweattechnologies.comwrote: LOL, just a bug in my

Re: Sockets

2010-05-06 Thread Bob Sneidar
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.

Re: Sockets

2010-05-06 Thread Hershel Fisch
On 5/6/10 12:28 PM, Bob Sneidar b...@twft.com wrote: Shouldn't you put it AFTER fld f1 if you are tracing it? That's the reason every read I put into another fld., and also to see what read returns what. As I saw that the second write repeated the same as the first. Bob On May 5,

Re: Sockets

2010-05-05 Thread Hershel Fisch
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

Re: Sockets

2010-04-29 Thread Hershel Fisch
Thanks, I'll check it out. Hershel On 4/28/10 9:04 AM, Trevor DeVore li...@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:

Re: Sockets

2010-04-28 Thread Trevor DeVore
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-communicate-with-other-applications-using-sockets -- Trevor DeVore Blue

Re: Sockets

2010-04-28 Thread Hershel Fisch
for what purpose you need socket session? Regards, SHANI -Original Message- From: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-boun...@lists.runrev.com] On Behalf Of Sarah Reichelt Sent: Wednesday, April 28, 2010 12:59 AM To: How to use Revolution Subject: Re

Re: Sockets

2010-04-27 Thread Sarah Reichelt
On Wed, Apr 28, 2010 at 6:23 AM, Hershel Fisch hersh...@syp2u4c.com wrote: Hi, could any help me out with a full socket session ? Please! Check out either of my email libraries: http://www.troz.net/rev/stacks/POP_library_demo.rev http://www.troz.net/rev/stacks/SMTP_library_demo.rev They both

RE: Sockets

2010-04-27 Thread Shani
-boun...@lists.runrev.com [mailto:use-revolution-boun...@lists.runrev.com] On Behalf Of Sarah Reichelt Sent: Wednesday, April 28, 2010 12:59 AM To: How to use Revolution Subject: Re: Sockets On Wed, Apr 28, 2010 at 6:23 AM, Hershel Fisch hersh...@syp2u4c.com wrote: Hi, could any help me out

Re: Sockets

2005-12-12 Thread Graham Samuel
This is just a quick 'thank you' to Alex Tweedly and Dave Cragg for their very educational mails. I will experiment shortly and get back to the list when (not if) I get into a muddle. Graham --- Graham Samuel / The

Re: Sockets

2005-12-12 Thread Jim Hurley
Like Graham, I too would like to thank Alex and Dave for their detailed discussion of sockets. I tried Dave's small handler and it worked well, but only once. I went into the script to insert a break point so that I could step through it to see how it works, but it wouldn't work a second

Re: Sockets

2005-12-12 Thread Dave Cragg
On 13 Dec 2005, at 01:40, Jim Hurley wrote: Like Graham, I too would like to thank Alex and Dave for their detailed discussion of sockets. I tried Dave's small handler and it worked well, but only once. I went into the script to insert a break point so that I could step through it to

Re: Sockets

2005-12-11 Thread Björnke von Gierke
On Dec 11 2005, at 17:32, Jim Hurley wrote: ... Searched the dictionary for socket and came up with the single Using URLs, uploading, and downloading, 18 pages (copied to Word) which don't appear to contain the word socket. Is there a secret RR society which is privy to this sort of

Re: Sockets

2005-12-11 Thread Mark Wieder
Björnke- Sunday, December 11, 2005, 8:49:42 AM, you wrote: Of course there is a secret Socket society! But it's easy to join: Our required readings are: Open Socket command Close Socket command Accept command You got off easy. I had to stay after school and read write to socket read from

Re: Sockets

2005-12-11 Thread Dave Cragg
On 11 Dec 2005, at 16:49, Björnke von Gierke wrote: Of course there is a secret Socket society! But it's easy to join: Our required readings are: Open Socket command Close Socket command Accept command If these don't help you, then you need to ask either on the use list or in chatrev :)

Re: Sockets

2005-12-11 Thread Graham Samuel
On Sun, 11 Dec 2005 08:32:55 -0800, Jim Hurley [EMAIL PROTECTED] wrote: Now all I need to do is find out was a socket is. I know it must have something to do with light bulbs. Searched the dictionary for socket and came up with the single Using URLs, uploading, and downloading, 18 pages

Re: Sockets

2005-12-11 Thread Alex Tweedly
Graham Samuel wrote: I can't answer the question but I would very much like to be around when it is answered. When I was younger (**much** younger), I used to kind of absorb technical stuff without consciously learning about it, but nowadays stuff suddenly comes up and bites me in the

Re: Sockets

2005-12-11 Thread Andre Garzia
BvG, Also, to become a member of the House Of The Sockets And Ports, one should learn the write to socket read from socket commands. I'll publish a little draft today on sockets. The Socket Society meets on ChatRev... :-p cheers andre On Dec 11, 2005, at 2:49 PM, Björnke von Gierke

Re: Sockets

2005-12-11 Thread Dave Cragg
This time I'll try to be more helpful. On 11 Dec 2005, at 21:34, Graham Samuel wrote: Sockets, do we need them If you just need to connect to internet URLs, you can use the get URL, load URL, etc, calls, and not have to know anything about sockets. But if you want to do something more

Re: sockets and Windows behavior

2005-02-12 Thread Dar Scott
On Feb 12, 2005, at 8:36 AM, John Rule wrote: Maybe the problem is in doing broadcast messages in general on Windows (this same code works fine on OSX...Linux is another issue altogether). It doesn't work consistently (I do not always get the callback to my 'with' message, the average is 6

Re: sockets and Windows behavior

2005-02-11 Thread Graham Samuel
On Fri, 11 Feb 2005 15:56:33 -0200, Andre Garzia [EMAIL PROTECTED] wrote: [...] PS: hum... I think a little network foundations primer would be good... shall we write one? If you do, I'd like to be your first customer! I could not even reliably describe what a socket is (not really even what

Re: sockets and Windows behavior

2005-02-11 Thread Dar Scott
On Feb 11, 2005, at 10:48 AM, John Rule wrote: I noticed that when a socket (regular or datagram) is opened to Windows (via my app that is listening on port 1901), an 'alias' port is given instead of the 'real' one. For example, if my external device (computer, PDA, etc.) connects to socket

Re: sockets and Windows behavior

2005-02-11 Thread Alex Tweedly
Dar Scott wrote: UDP is connectionless, but is often handled as though it is a connection in sockets implementations and especially the view in Revolution. The same concepts apply roughly. (UDP is sort of a stepchild so folks don't worry about getting it right. Windows XP handles UDP errors

Re: sockets and Windows behavior

2005-02-11 Thread John Rule
Thank you for the detailed responses everyone! To make my task even more difficult, I was trying to do a UDP broadcast, and accept a variable number of responses (unspecified number of devices). What became confusing was 'when' to parse the data parameter and when to use the 'with function'

Re: Sockets

2004-08-27 Thread Scott Slaugh
I have a stack that I have made that provides a library for working with sockets in Revolution, as well as a front end for the library. I'll upload it to revOnline tonight, and you can see if it does what you need. Scott Slaugh On Sat, 28 Aug 2004 06:27:29 +1000, Keith Hutchison [EMAIL

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Scott, I have a stack that I have made that provides a library for working with sockets in Revolution, as well as a front end for the library. I'll upload it to revOnline tonight, and you can see if it does what you need. Thanks Keith Hutchison Balance-Infosystems.Com postgresql -

Re: Sockets

2004-08-27 Thread Keith Hutchison
Does the following code look correct? set TheResult to open socket 127.0.0.1:4563 with message MYOBContacts set the contents of ResultField to TheResult Keith Hutchison Balance-Infosystems.Com postgresql - mysql - dbf Foxpro - Delphi - MS Access - REALbasic http://balance-infosytems.com

Re: Sockets

2004-08-27 Thread Troy Rollins
On Aug 27, 2004, at 5:35 PM, Keith Hutchison wrote: Does the following code look correct? set TheResult to open socket 127.0.0.1:4563 with message MYOBContacts set the contents of ResultField to TheResult No. There is a lot wrong with it, to be blunt. ;-) The first line would probably look like

Re: Sockets

2004-08-27 Thread Björnke von Gierke
... set TheResult to open socket 127.0.0.1:4563 with message MYOBContacts set the contents of ResultField to TheResult ... blocking: on mouseUp open Socket 127.0.0.1:4563 write MYOBContacts to socket 127.0.0.1:4563 close socket 127.0.0.1:4563 end mouseUp nonblocking: on mouseUp Open

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Troy No. There is a lot wrong with it, to be blunt. ;-) Excellent!! ( Had to start somewhere :-) ) The first line would probably look like - open socket to 127.0.0.1:4563 with message MYOBContacts But - MYOBContacts would be a handler in your scripts which the socket connection is

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Björnke Here is the code I have based on your example. I have breakpoints on each event, however only the first event, mouseup stops in the debugger. on mouseUp open socket 192.168.100.63:4563 with message socketOpen end mouseUp on socketOpen theIP write Hello to socket theIP with

Re: Sockets

2004-08-27 Thread Troy Rollins
On Aug 27, 2004, at 6:27 PM, Keith Hutchison wrote: Any further ideas? Well, are you expecting to read something from the socket, or just write to it? -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list [EMAIL PROTECTED]

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Troy Read and write. Concept is send in a command via tcpip to a server, process the results on the Runtime Revolution built client. Keith Hutchison Balance-Infosystems.Com postgresql - mysql - dbf Foxpro - Delphi - MS Access - REALbasic http://balance-infosytems.com http://realopen.org

Re: Sockets

2004-08-27 Thread Björnke von Gierke
ok try this modification, there seems to be a problem with the open socket command... maybe the socket is already open? the result will contain the error information. on mouseUp open socket 192.168.100.63:4563 with message socketOpen if the result then put the result end mouseUp if indeed

Re: Sockets

2004-08-27 Thread Troy Rollins
On Aug 27, 2004, at 6:47 PM, Keith Hutchison wrote: Read and write. Concept is send in a command via tcpip to a server, process the results on the Runtime Revolution built client. Well then, in your description you are - opening the socket once open, writing to the socket once written, closing

Re: Sockets

2004-08-27 Thread Chipp Walters
Keith, Not sure if you've already answered this, but I've a couple of comments for you. If the server is a webserver, then you can use libURL to access it w/out having to mess around with opening and closing sockets. Just use: put URL http://www.myserver.com/fred.mydocformat; into fld 1 and

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Troy Thanks for your help. Got it working. Keith Hutchison Balance-Infosystems.Com postgresql - mysql - dbf Foxpro - Delphi - MS Access - REALbasic http://balance-infosytems.com http://realopen.org ___ use-revolution mailing list [EMAIL

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Björnke Thanks for your online support. Got it working, Thanks Keith Hutchison Balance-Infosystems.Com postgresql - mysql - dbf Foxpro - Delphi - MS Access - REALbasic http://balance-infosytems.com http://realopen.org ___ use-revolution mailing

Re: Sockets

2004-08-27 Thread Scott Slaugh
I've uploaded my networking library to revOnline. It is under the user xslaugh. I have also uploaded a front end stack, which demonstrates the use of the library. This front end contains some help, and the library has some comments in the script. This library currently uses datagram sockets

Re: Sockets

2004-08-27 Thread Keith Hutchison
Hi Scott Thanks The example I ended up with is http://balance-infosystems.com/applications/tcpcommander/TCPCommanderStack002.rev I successfully got a list of myob contacts from an middleware application server written in REALbasic to access a MYOB datafile via ADODB via an MS access database!

Re: Sockets

2004-03-10 Thread Mark Talluto
On Mar 9, 2004, at 3:12 PM, Springer, Paul wrote: I am trying to put together some socket code on Windows. The documentation seems clear but there are a couple things that are not as I expected and a simple example would go a long way. Does anyone have such a thing handy? Just a simple

Re: Sockets

2004-03-10 Thread Rob Cozens
I am trying to put together some socket code on Windows. The documentation seems clear but there are a couple things that are not as I expected and a simple example would go a long way. Does anyone have such a thing handy? Just a simple accept/connect, send/receive, close example. Hi Paul, There

Re: Sockets

2004-03-09 Thread Brian Yennie
This is off the top of my head, but hopefully it helps. It basically just expects 1 line of input over the socket, and then echos it back. Note that you don't have to use the with message syntax, but if you don't then your program will block when doing reads and writes from the socket, which is

Re: Sockets Behind The Wall

2004-01-21 Thread Andre Garzia
On Jan 21, 2004, at 11:16 PM, Scott Rossi wrote: I'm trying to establish socket connections behind a router with firewall. (I'm using the little chat demo that Tuviah put together some time ago.) I assumed I only needed the local (router assigned) addresses of each machine, but either this is

Re: Sockets Behind The Wall

2004-01-21 Thread Dar Scott
On Wednesday, January 21, 2004, at 06:16 PM, Scott Rossi wrote: Can some kind soul enlighten me as to what I'm doing wrong? Sure! Only, I'm not clear on your setup. Is it this? A. Internet -- Firewall -Client |

Re: Sockets Behind The Wall

2004-01-21 Thread Scott Rossi
On 1/21/04 8:54 PM, Dar Scott [EMAIL PROTECTED] wrote: Can some kind soul enlighten me as to what I'm doing wrong? Sure! Only, I'm not clear on your setup. Is it this? A. Internet -- Firewall -Client |

Re: Sockets Behind The Wall

2004-01-21 Thread Dar Scott
On Wednesday, January 21, 2004, at 10:38 PM, Scott Rossi wrote: It works fine when client and server stacks are on the same system, but not when they're on separate local systems. Anything else I can try? Make sure you can ping your own address (not just 127.0.0.1) and the other address from the

Re: Sockets Behind The Wall

2004-01-21 Thread Andre Garzia
On Jan 22, 2004, at 4:07 AM, Dar Scott wrote: Though unusual, two computers on the same ethernet might not be on the same subnet. There are a few ways this can cause trouble if this is the case. thats just ugly... :-D Once I stod hours trying to solve a simple netbios-samba problem just to

Re: Sockets

2002-11-11 Thread Manolo Garrido
Title: Re: Sockets It is possible with AppleScript, so why shouldn't it with Revolution?? on 11/10/02 20:29, FreakyPhoenix at [EMAIL PROTECTED] wrote: I don't believe that is possible. Your computer just won't find your own IP. FreakyPhoenix From: Manolo Garrido Reply-To: [EMAIL

Re: Sockets

2002-11-10 Thread FreakyPhoenix
I don't believe that is possible. Your computer just won't find your own IP. FreakyPhoenix From: Manolo Garrido <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: Sockets Date: Thu, 07 Nov 2002 17:01:00 +0100 Does anyone knows if it's possible to develop a

RE: Sockets

2002-11-10 Thread Gary Rathbone
November 2002 19:30 To: [EMAIL PROTECTED] Subject: Re: Sockets I don't believe that is possible. Your computer just won't find your own IP. FreakyPhoenix From: Manolo Garrido Reply-To: [EMAIL PROTECTED] To: Subject: Sockets Date: Thu, 07 Nov 2002 17:01:00 +0100 Does anyone knows if it's possible

Re: Sockets

2002-11-10 Thread Ken Ray
/revolution.htm?_env001 Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: FreakyPhoenix [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 10, 2002 1:29 PM Subject: Re: Sockets I don't believe

Re: sockets

2002-07-12 Thread Dar Scott
On Friday, July 12, 2002, at 02:22 AM, Larry Forsgren wrote: In sending commands to the mail server I used linefeed as described in the Revolution documentation    write command linefeed to socket socket This certainly does not work on Windows but replacing linefeed with CRLF works just

Re: sockets

2002-07-10 Thread Dar Scott
On Tuesday, July 9, 2002, at 03:40 PM, Larry Forsgren wrote: When trying to run the script again it fails until I restart revolution. Any chance your mailserver is the same computer? And on Windows? If so, I may have run into something similar. Dar Scott

Re: sockets

2002-07-10 Thread Dar Scott
On Wednesday, July 10, 2002, at 01:28 PM, Larry Forsgren wrote:  Unfortunately not. The mail server is on Unix (and I have tried a few which give the same result) and the client is on Windows XP. I can open the socket and read the welcome from the mail server but not access the socket with

Re: sockets

2002-07-10 Thread Shao Sean
write USER user to socket server try: write USER user CRLF to socket server remember you need to send the CRLF at the end of every command (just like SMTP).. ___ use-revolution mailing list [EMAIL PROTECTED]

Re: sockets

2002-07-10 Thread Dar Scott
On Wednesday, July 10, 2002, at 01:41 PM, Larry Forsgren wrote: Correct, server contains mailsever:110. I logged the results to a field but it came up empty. The sysError is 0 which I don´t know what it means. The actual code as it looks currently is below. It does not matter if I change

Re: sockets

2002-07-09 Thread Sarah
Sorry for the long email, but here are the basic routines I use for POP communications. You'll need to customize to fit in with your field names instead of mine. Also, check the setupNextCall handler as that is specifically for my button ID. Everything gets logged so debugging is quite easy.

Re: sockets

2002-07-09 Thread Shao Sean
are you on windows? if so we've noticed that using a socket right after closing it will fail.. you'll need to give it some time in which to timeout (as was mentioned by someone else on the list.. they said to lower the socket timeout).. - Original Message - When trying to run the script

Re: sockets

2002-07-09 Thread Dar Scott
On Tuesday, July 9, 2002, at 10:20 PM, Shao Sean wrote: are you on windows? if so we've noticed that using a socket right after closing it will fail.. you'll need to give it some time in which to timeout (as was mentioned by someone else on the list.. they said to lower the socket

Re: sockets - opening and closing

2002-05-06 Thread Shao Sean
Did you try in adding the line below to your preopenstack script : set the socketTimeoutInterval to 10 thanks for the tip, i'll give it a try in the next revision of my project ___ use-revolution mailing list [EMAIL PROTECTED]

Re: sockets - opening and closing

2002-05-06 Thread Dave Cragg
Hi Although not directly relevant to the problems discussed, it's probably a good idea to check the result after an open socket statement. It seems that if the connection fails to open due to a name resolution problem, the error is found in the result, not a socketError message. Cheers Dave

Re: sockets - opening and closing

2002-05-03 Thread Dar Scott
On Friday, May 3, 2002, at 07:18 PM, Shao Sean wrote: i've noticed that when creating a TCP socket that opening and closing it a few times in a row causes it not to work anymore.. open close open -- stops here most of the time I've seen this kind of thing when the server is the same

Re: sockets - opening and closing

2002-05-03 Thread Shao Sean
I've seen this kind of thing when the server is the same computer. i'm on the server machine (server and client same machine) and another client in australia (can't physically get further away from me then that ;-) -- Could the server have put you on a black list? i don't have any such

Re: sockets - opening and closing

2002-05-03 Thread Dar Scott
On Friday, May 3, 2002, at 08:33 PM, Shao Sean wrote: I've seen this kind of thing when the server is the same computer. i'm on the server machine (server and client same machine) and another client in australia (can't physically get further away from me then that ;-) I noticed that a