Re: problem with applet ....
From: Andrew Skouloudis (afterskoulNOSPAMPLEASE_at_yahoo.com)
Date: 12/31/03
- Next message: Dmitry R: "Re: Can Ant be made to compile only read only java files?"
- Previous message: Esmond Pitt: "Re: Determining of a Socket has been closed by the other side."
- In reply to: Andrew Thompson: "Re: problem with applet ...."
- Next in thread: Andrew Thompson: "Re: problem with applet ...."
- Reply: Andrew Thompson: "Re: problem with applet ...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ...
- Next message: Dmitry R: "Re: Can Ant be made to compile only read only java files?"
- Previous message: Esmond Pitt: "Re: Determining of a Socket has been closed by the other side."
- In reply to: Andrew Thompson: "Re: problem with applet ...."
- Next in thread: Andrew Thompson: "Re: problem with applet ...."
- Reply: Andrew Thompson: "Re: problem with applet ...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|