R
Richard Lavoie
Hallo everybody,
I'm trying to write a client/server application which uses bluetooth
to do the communication.
Wenn I start the server, I have to start acceptAndOpen() to wait for
incomming connections of the clients.
My Problem ist that if there isn't any client the function above will
block the application.
What I tried was to start it as a thread by making the class server
runnable.
The problem now ist how to stop this thread (in particular
acceptAndOpen()).
There isn't a method Thread.stop() or suspend() in j2me.
What I tried to was to make a dummy connection to server to get out of
acceptAndOpen(). But this ist't the nice way to do it.
Any help, please!!!
Richard
I'm trying to write a client/server application which uses bluetooth
to do the communication.
Wenn I start the server, I have to start acceptAndOpen() to wait for
incomming connections of the clients.
My Problem ist that if there isn't any client the function above will
block the application.
What I tried was to start it as a thread by making the class server
runnable.
The problem now ist how to stop this thread (in particular
acceptAndOpen()).
There isn't a method Thread.stop() or suspend() in j2me.
What I tried to was to make a dummy connection to server to get out of
acceptAndOpen(). But this ist't the nice way to do it.
Any help, please!!!
Richard