Re: Open Socket
Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Shani, I know nothing about JADE but your command still wrong. Please also check the docs, your message has a space in it when it should not. Try something like: open socket to 127.0.0.1:6800 with message serverconnected Cheers andre On Tue, Mar 30, 2010 at 7:23 PM, Shani shani.run...@gmail.com wrote: open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the accept command: accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Yes, I want to use Rev as a Server. I send another email with detail. kindly see that. and correct that plz. Rev is on Server Side JADE is on Client Side Regards, SHANI On Wed, Mar 31, 2010 at 12:37 AM, Brian Yennie bri...@qldlearning.comwrote: Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the accept command: accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Ah... that changes everything. you will use the accept connection command. Check the docs on that, it will help. Now, the question is why do you want a Rev server? A server built as a Revolution Desktop application is a single thread application, if your server is doing anything intensive (and thus requiring some time), it will fail to answer other connections. Cheers andre On Tue, Mar 30, 2010 at 7:48 PM, Shani shani.run...@gmail.com wrote: Yes, I want to use Rev as a Server. I send another email with detail. kindly see that. and correct that plz. Rev is on Server Side JADE is on Client Side Regards, SHANI On Wed, Mar 31, 2010 at 12:37 AM, Brian Yennie bri...@qldlearning.com wrote: Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the accept command: accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Shani, As I wrote in my previous post, you need to use the accept command, not open socket. Also, I think you are misunderstanding the with message portion. This message needs to be the name of a handler which is called when a connection is made. See my example and also the docs on this. Yes, I want to use Rev as a Server. I send another email with detail. kindly see that. and correct that plz. Rev is on Server Side JADE is on Client Side Regards, SHANI On Wed, Mar 31, 2010 at 12:37 AM, Brian Yennie bri...@qldlearning.comwrote: Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the accept command: accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket
Thanks Andre Garzia and Brian Yennie, this link is very helpful. but if you have a time then kindly check these links and make changes and guide me all my mistake. http://www.4shared.com/dir/35326335/dcff5fd2/REV2JADE.htmlhttp://www.4shared.com/file/253171642/cc342c25/testjade_rar.html you can upload the changes hare too. Brain, ok i use this for accept and read and what about write process. accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. Regards, SHANI On Wed, Mar 31, 2010 at 12:50 AM, Andre Garzia an...@andregarzia.comwrote: Ah... that changes everything. you will use the accept connection command. Check the docs on that, it will help. Now, the question is why do you want a Rev server? A server built as a Revolution Desktop application is a single thread application, if your server is doing anything intensive (and thus requiring some time), it will fail to answer other connections. Cheers andre On Tue, Mar 30, 2010 at 7:48 PM, Shani shani.run...@gmail.com wrote: Yes, I want to use Rev as a Server. I send another email with detail. kindly see that. and correct that plz. Rev is on Server Side JADE is on Client Side Regards, SHANI On Wed, Mar 31, 2010 at 12:37 AM, Brian Yennie bri...@qldlearning.com wrote: Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the accept command: accept connections on port 6800 with message serverConnect on serverConnect tSocket read from socket tSocket for 1 line ... end serverConnect etc. open socket to (127.0.0.1 : (6800)) with message Server connected is this is rihght code for rev and what about in JADE? Regards, SHani On Tue, Mar 30, 2010 at 3:08 PM, Andre Garzia an...@andregarzia.com wrote: Shani, check out the documentation built-in with Rev. open socket expect and IP or server name, unless filename is a machine on your network, that code is wrong. Also what is that # symbol doing there? Om shanti andre On Mon, Mar 29, 2010 at 11:46 PM, Shani shani.run...@gmail.com wrote: Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Open Socket
Hi, I want to communicate with Other program Client (JAVA or JADE) from RevTalk through Socket. open socket to (filename : (port#)) with message Server connected ## http://docs.runrev.com/Command/open-socket what i give command on client side. Regards, SHANI ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
open socket - SSL client certificates
From the 2.9 Dictionary under 'Open Socket': Some servers require that the client submit a certificate as well, this will be supported in the next alpha. Has this feature ever materialized? I see that the next alpha is mentioned in open socket in the 2.8 docs as well. Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: open socket - SSL client certificates
And it's still in the documentation for Rev 3.0 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: open socket - SSL client certificates
I don't think the documentation has been updated with the Beta yet. At least on my system, it is still the 2.9 docs. - Noel At 10:51 AM 8/17/2008, you wrote: And it's still in the documentation for Rev 3.0 ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
On 27 Feb 2008, at 16:40, Alex Tweedly wrote: Dave wrote: 3) In my App, a Server is only allowed to Accept connections from Certain Clients (this is controlled by the IP Address and a Value passed to the Server in the Connection Request). This is my Accept code: function IStartServer theServerPortNumber -- -- Accept Connection(s) from Client(s) -- accept connections on theServerPortNumber with message ISMServerContactedByClient return empty end IStartServer on ServerContactedByClient theIPAddress local myResult -- -- Check for Error -- put the result into myResult if myResult empty then exit ServerContactedByClient read from socket theIPAddress for kPacketCountSize chars with message ISMServerReceivedPacketSize end ServerContactedByClient Can I just look up theIPAddress in ServerContactedByClient and if it's not in the list of valid Clients, do do an exit ServerContactedByClient to ignore the request? That would kind of work, because you neither read from, nor write to, the socket, so the connection isn't 'active'. However, the connection will still be open, so you really ought to do close theIPAddress(btw, I think the documentation is misleading. It says the parameter to the handler called when the connection is open contains the IP Address, when in fact it contains the socket descriptor - typically an IP Address and port, but sometimes IP Addr + port + connectionID. I find it confusing to name that parameter theIPAddress; I always call it pSocket :-). The Server can Accept connections from a number of Clients, surely if I close the port, then no other clients will be able to connect. Or do you mean I should (on the Server) close the connection that is presented to the ServerContactedByClient handler? e.g. the IP/Port? ConnectionID of the Client? Also, I'm curious.This is probably just because you've snipped code to send it here, but just in case it isn't you look at the result immediately - what do you expect it to contain at that point ? I think this was a snipping problem as you say, before I wasn't using a Callback Handler and so I needed to check the result after the command returned. However, do need to check the result after the Accept command?: accept connections on theServerPortNumber with message ServerContactedByClient Thanks a Lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
Sorry I'm late replying - time zone differences can be a real nuisance :-) It looks from later email that you've already figured out these answers - but I'll answer them for the sake of completeness for anyone reading the threads later. Dave wrote: The Server can Accept connections from a number of Clients, surely if I close the port, then no other clients will be able to connect. Or do you mean I should (on the Server) close the connection that is presented to the ServerContactedByClient handler? e.g. the IP/Port?ConnectionID of the Client? Indeed - in your code you would do something like set the itemDel to : if item 1 of theIPAddress is not among the lines of gAllowedClientList then close socket theIPAddress exit ServerContactedByClient end if Also, I'm curious.This is probably just because you've snipped code to send it here, but just in case it isn't you look at the result immediately - what do you expect it to contain at that point ? I think this was a snipping problem as you say, before I wasn't using a Callback Handler and so I needed to check the result after the command returned. However, do need to check the result after the Accept command?: accept connections on theServerPortNumber with message ServerContactedByClient No, there should be no need to do that. Though if there is a possibility of multiple applications trying to accept on the same port, that may be different. See later reply to other emails ... -- Alex Tweedly mailto:[EMAIL PROTECTED] www.tweedly.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
Hi All, I just got around the writing the code for this. A couple of questions: 1) Regarding: - when the openSockets contains all the addresses in your original list, you're done I'm not sure what you mean by done, all servers will be connected to the Client, but is there anything specific I need to do if/when this happens. If the In my App if the Client is not connected to a Server then nothing special happens, if it is connected then messages are sent periodically. 2) In the socketError and socketTimeout handlers, how can I tell if the error presented is because of a Connect to Server problem or a general read/write problem? Can I just check in the openSockets and if it's there assume it's from a read/write problem? 3) In my App, a Server is only allowed to Accept connections from Certain Clients (this is controlled by the IP Address and a Value passed to the Server in the Connection Request). This is my Accept code: function IStartServer theServerPortNumber -- -- Accept Connection(s) from Client(s) -- accept connections on theServerPortNumber with message ISMServerContactedByClient return empty end IStartServer on ServerContactedByClient theIPAddress local myResult -- -- Check for Error -- put the result into myResult if myResult empty then exit ServerContactedByClient read from socket theIPAddress for kPacketCountSize chars with message ISMServerReceivedPacketSize end ServerContactedByClient Can I just look up theIPAddress in ServerContactedByClient and if it's not in the list of valid Clients, do do an exit ServerContactedByClient to ignore the request? Thanks a lot All the Best Dave On 21 Feb 2008, at 21:36, Phil Davis wrote: Hi Dave, I don't have time to write sample code right now, but one approach would be: - set the socketTimeoutInterval to something reasonable - make a 'connectToServerApp' handler that opens one socket, using the params passed to it by 'startClient' - let 'StartClient' do this once for each line in your server list: send (connectToServerApp tOneIpAddress) to stack in 0 ticks - make a 'socketTimeout' handler than resends the 'connectToServerApp' cmd (with params) to stack in x ticks - make a 'socketError' that notifies you of connection failures - when the openSockets contains all the addresses in your original list, you're done Phil Davis Dave wrote: Hi All, I have a number of applications that communicate with each other using TCP/IP Sockets. For a given application, I want to be able to connect it to a number of server applications, however the server apps make or may not be running, so what I want to be able to do is to issue an open socket to a server application and if the connection is made add it to a connected table and if not, carry on the to next server, but try to open the socket again at a later time. I can't seem to be able to get my head around the code needed to do this! Basically I have a Function that gets called with a list of the IP Addresses in the for - aa.bb.cc.dd:port and a ConnectionID, I want to be able to open a socket to each IP/Port with the specified ConnectionID . The function definition for this is as follows: function StartClient theConnectToServerList,theConnectionID theConnectToServerList is a list of the following 192.168.1.100:6000 192.168.1.100:6002 192.168.1.100:6004 etc. Any ideas on how achieve this gracefully would be greatly appreciated! All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
Dave wrote: 3) In my App, a Server is only allowed to Accept connections from Certain Clients (this is controlled by the IP Address and a Value passed to the Server in the Connection Request). This is my Accept code: function IStartServer theServerPortNumber -- -- Accept Connection(s) from Client(s) -- accept connections on theServerPortNumber with message ISMServerContactedByClient return empty end IStartServer on ServerContactedByClient theIPAddress local myResult -- -- Check for Error -- put the result into myResult if myResult empty then exit ServerContactedByClient read from socket theIPAddress for kPacketCountSize chars with message ISMServerReceivedPacketSize end ServerContactedByClient Can I just look up theIPAddress in ServerContactedByClient and if it's not in the list of valid Clients, do do an exit ServerContactedByClient to ignore the request? That would kind of work, because you neither read from, nor write to, the socket, so the connection isn't 'active'. However, the connection will still be open, so you really ought to do close theIPAddress (btw, I think the documentation is misleading. It says the parameter to the handler called when the connection is open contains the IP Address, when in fact it contains the socket descriptor - typically an IP Address and port, but sometimes IP Addr + port + connectionID. I find it confusing to name that parameter theIPAddress; I always call it pSocket :-). Also, I'm curious.This is probably just because you've snipped code to send it here, but just in case it isn't you look at the result immediately - what do you expect it to contain at that point ? -- Alex Tweedly mailto:[EMAIL PROTECTED] www.tweedly.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
Hi Phil, Thanks a lot for this, the thing I was missing was the use of the sockeError/socketTimeout handlers. All the Best Dave On 21 Feb 2008, at 21:36, Phil Davis wrote: Hi Dave, I don't have time to write sample code right now, but one approach would be: - set the socketTimeoutInterval to something reasonable - make a 'connectToServerApp' handler that opens one socket, using the params passed to it by 'startClient' - let 'StartClient' do this once for each line in your server list: send (connectToServerApp tOneIpAddress) to stack in 0 ticks - make a 'socketTimeout' handler than resends the 'connectToServerApp' cmd (with params) to stack in x ticks - make a 'socketError' that notifies you of connection failures - when the openSockets contains all the addresses in your original list, you're done Phil Davis Dave wrote: Hi All, I have a number of applications that communicate with each other using TCP/IP Sockets. For a given application, I want to be able to connect it to a number of server applications, however the server apps make or may not be running, so what I want to be able to do is to issue an open socket to a server application and if the connection is made add it to a connected table and if not, carry on the to next server, but try to open the socket again at a later time. I can't seem to be able to get my head around the code needed to do this! Basically I have a Function that gets called with a list of the IP Addresses in the for - aa.bb.cc.dd:port and a ConnectionID, I want to be able to open a socket to each IP/Port with the specified ConnectionID . The function definition for this is as follows: function StartClient theConnectToServerList,theConnectionID theConnectToServerList is a list of the following 192.168.1.100:6000 192.168.1.100:6002 192.168.1.100:6004 etc. Any ideas on how achieve this gracefully would be greatly appreciated! All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ use-revolution mailing list use-revolution@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Open Socket Question
Hi All, I have a number of applications that communicate with each other using TCP/IP Sockets. For a given application, I want to be able to connect it to a number of server applications, however the server apps make or may not be running, so what I want to be able to do is to issue an open socket to a server application and if the connection is made add it to a connected table and if not, carry on the to next server, but try to open the socket again at a later time. I can't seem to be able to get my head around the code needed to do this! Basically I have a Function that gets called with a list of the IP Addresses in the for - aa.bb.cc.dd:port and a ConnectionID, I want to be able to open a socket to each IP/Port with the specified ConnectionID . The function definition for this is as follows: function StartClient theConnectToServerList,theConnectionID theConnectToServerList is a list of the following 192.168.1.100:6000 192.168.1.100:6002 192.168.1.100:6004 etc. Any ideas on how achieve this gracefully would be greatly appreciated! All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Open Socket Question
Hi Dave, I don't have time to write sample code right now, but one approach would be: - set the socketTimeoutInterval to something reasonable - make a 'connectToServerApp' handler that opens one socket, using the params passed to it by 'startClient' - let 'StartClient' do this once for each line in your server list: send (connectToServerApp tOneIpAddress) to stack in 0 ticks - make a 'socketTimeout' handler than resends the 'connectToServerApp' cmd (with params) to stack in x ticks - make a 'socketError' that notifies you of connection failures - when the openSockets contains all the addresses in your original list, you're done Phil Davis Dave wrote: Hi All, I have a number of applications that communicate with each other using TCP/IP Sockets. For a given application, I want to be able to connect it to a number of server applications, however the server apps make or may not be running, so what I want to be able to do is to issue an open socket to a server application and if the connection is made add it to a connected table and if not, carry on the to next server, but try to open the socket again at a later time. I can't seem to be able to get my head around the code needed to do this! Basically I have a Function that gets called with a list of the IP Addresses in the for - aa.bb.cc.dd:port and a ConnectionID, I want to be able to open a socket to each IP/Port with the specified ConnectionID . The function definition for this is as follows: function StartClient theConnectToServerList,theConnectionID theConnectToServerList is a list of the following 192.168.1.100:6000 192.168.1.100:6002 192.168.1.100:6004 etc. Any ideas on how achieve this gracefully would be greatly appreciated! All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
open socket with message for function?
Does anyone know how to open a socket with a message to call a function? I know that the ACCEPT (with message) can be used for ports, but what about sockets? What I want is for Revolution to call a function when I receive data on the open socket (this works fine with an open port), but I never get called with an open socket. I have to 'manually' get the data. I can poll an open socket for data, but even when using the send command, it still affects system performance. I don't mind getting the data manually (I'm getting kind of spoiled I guess with Revolution doing everything for me), but the performance is terrible. I think it is the combination of the SEND commands (every 100 ms), and all of the read requests from the socket buffer that is doing it...is there another way? Thanks, JR ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution