Open Socket

Shani shani.runrev at gmail.com
Tue Mar 30 19:08:35 EDT 2010


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.html<http://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 <andre at andregarzia.com>wrote:

> 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.runrev at 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 <briany at 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 <andre at 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.runrev at 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 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
> >
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> 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