So basically what you are saying is that I should run 2 servers in my code:

1. bluetooth server
2. socket server

And make ooimpress plugin the client to the socket server ?

On 10/23/06, Tobias Krais <[EMAIL PROTECTED]> wrote:

Hi Tabish,

your information is very useful to me. But my answer remains the same:

> So the way I thought it should work is
> that I start a server in my java code then the same java code bootstraps
> ooimpress and then from there I can communicate from inside ooimpress to
> this server class as I explained it to you earlier.

OK. Write a java programm as you suggest above. This programm starts
your server listening on a port. A second thread starts OOimpress.

> In no way is my ooimpress a client to this server, rather my ooimpress
> plugin should be a server itself. So basically I'm looking towards an
app
> which will have 2 parts:
> 1. my bluetooth server
> 2. ooimpress

Yes. OOimpress is not a server. An OOimpress plugin is the client of the
server. Why do you need a plugin?

> Class Test
> {
>    //I bootstrapped ooimpress here and after execution I have ooimpress
> opened    //in front of me
>
>  void foo(){}
> }

As you wrote, you want to execute server code (Test.foo()) by calling a
macro. OOimpress (or UNO) itself cannot do this. It needs a plugin...

> Now from inside a Macro I want to do Test.foo().

and Basic macro code can call this plugin.

So communication is that way (bad text based sequence diagramm):

JavaStarter      Server         OOimpress       OOimpressPlugin
Start()            |                |                    |
    ----------->listen()            |                    |
    ------------------------------->|                    |
    |              |          pressButtonMacro()-------->|
    |              |<--------------------------------connect()
    |              |isConnected()----------------------->|
    |              |<----------------------------ExecuteText.foo()
    |        Test.fooExecuted()----------------------->OK|
    |              |                |                    |


I hope I understood your point and my explanations are clear (well my
thoughts about your problem are... :-) Otherwise, continue asking. But I
cannot help you with coding, I only understand something about concepts.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to