Re: problem with applet ....

From: Andrew Skouloudis (afterskoulNOSPAMPLEASE_at_yahoo.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 10:11:35 +0200

On Wed, 31 Dec 2003 00:21:09 GMT, "Andrew Thompson"
<andrew64@bigNOSPAMpond.com> wrote:

>"Andrew Skouloudis" <afterskoulNOSPAMPLEASE@yahoo.com> wrote in message
>news:58d3vvkrdvr32eqijts6b756dhdvbkjv3t@4ax.com...
>> I am trying to create a simple applet for two playes (MineSweeper )
>> using a server-client scheme .
>
>I do not have time at the moment to look at
>your complete example, but a quick question..
>
>What is the exact exception you are getting?
>
>If it is a SecurityAccessException, the problem
>might be the Applet security sandbox..

That's my problem : First of all i am new to Java programming (not to
programming generaly ) . Secondly i am trying to create a network
version of Minesweeper .... . I have created a one-palyer version of
the minesweeper working fine and i have created a simple text-based
client-server program that send some inegers between them .....
The problem is when i am trying to combine these programs , which
means to create the Server Applet that performs the same steps with
server program ( creates a ServerSocket , after a Client socket etc
...). and the Client applet that performs the same steps with the
Client program . In both applets inside the init function the
connectOnSocket function is called and what i am trying to do from the
ServerApplet side is to create a ServerSocket (called server ) then
to create a socket clientSocket that waits for a connection :

  clientSocket = server.accept();

The ClientApplet is trying to connect to the Server using the usual
method , creates a socket and it tries to connect ..

 localhostSocket = new Socket("127.0.0.1", 9999);

if all these steps were correct then after a connection is established
both SimpleServer applet and SimpleClient applet creates a new game
...

Now , I start the ServerApplet which won't do anything before
executing the client applet . Afterwards a start the SimpleClient
applet . Normally after the connection i must see two Boards in Both
Applets . I see a new Board in the SimpleClient applet , but I don't
see anything in the ServerApplet ..... ( I see a "x" ot a coffe-cup
sometimes .... )

Sorry for my english ...



Relevant Pages

  • Re: Applet Consideration
    ... the client applet to connect to the server. ... My computer(the server) is behind a router ... > i.e. boolean login(String domain, String user, String pass) ...
    (comp.lang.java.databases)
  • Re: problem with applet ....
    ... the applet creates a new board. ... These images when the applets starts ... Server sends the board to the client. ...
    (comp.lang.java.programmer)
  • Re: How to do form signing with Certificates?
    ... I've got a HTML form with some sensitive information (such as ... now I would like the client to use his/her eCert to signed the form ... the server should check if the form ... applet to do the signing, so applet may be a good choice. ...
    (comp.lang.java.security)
  • Re: Calling a DLL from a Java Applet
    ... >> I'm trying to write a Java applet to call a dll that resides on the web ... >> web server. ... > The applet runs on the client. ...
    (comp.lang.java)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)

Loading