Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (603)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (652)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Re: DataInputStream corruption on: 2007-04-03 22:58:45
Problem solved using PrintStream and BufferedReader.
Thanks for replies!
2  Game Development / Networking & Multiplayer / DataInputStream corruption on: 2007-04-03 18:34:22
I'm sending messages like "J&0&1&john" to the server and the server sends the message to all the clients. The server receives and send the messages, but the client receives rubbish or nothing after a while. "J 0 1 john" becomes " 0 j hn" or something like that. The server sends the messages to all the sockets with a for loop. I'm using dataoutputstream and datainputstream. What could be the problem?

Here is the code where the server sends messages to the clients:
public void send(String text)
      System.out.println("** sending: "+text);
      for(int i=0;i<oda.getClients().size();i++)
         Client s=(Client)oda.getClients().elementAt(i);
         try {
         } catch (IOException e) {
            // TODO Auto-generated catch block

and the code of the client:

public void run()
            System.out.println("** incoming: "+message);
         catch(SocketException e)
            catch(IOException ex)
         } catch(IOException e)
3  Game Development / Networking & Multiplayer / Re: Establis Java Game 2500$ per a Game on: 2007-04-02 12:42:46
that's the point. you have to establish a certain amount of trust before I believe I would get paid for such a simple task Wink

right, but
numOfPosts != trust;
4  Game Development / Networking & Multiplayer / Re: Establis Java Game 2500$ per a Game on: 2007-04-01 11:49:58
typcal forum user comlexes, ha?  Tongue
here is a screenshot of the demo of the backgammon:

besides, no one joined this forum with 100s of posts. you had a few posts, too
5  Game Development / Networking & Multiplayer / JFrame from JApplet problem on: 2007-03-31 16:22:57
I have a JApplet which calls a JFrame. When a JFrame is created using one of the JButtons in the JApplet, the JPanels in the JApplet get mixed when I scroll the JPanel. When I close the frame, everything works fine again. Besides, the elements in the JList (in the JApplet) dissapear when I add a new element to it using the JFrame. Everything is created and added in the init() method of the JApplet.
6  Game Development / Networking & Multiplayer / Re: Establis Java Game 2500$ per a Game on: 2007-03-31 16:22:26
I wrote the game, I got my money.
Don't blame people who you don't know..
7  Game Development / Networking & Multiplayer / Re: Estimating threads and connection of a server on: 2007-03-11 21:22:41
I planned to use a thread per client. The server is a dual core machine. Wouldn't it be a problem if thousands of clients send messages to one thread?
8  Game Development / Networking & Multiplayer / Estimating threads and connection of a server on: 2007-03-11 13:10:47
I'm on a project which is about a board game. How can I approximately calculate max threads and max connections that the server can handle? Is there any way except waiting the server to throw any exception?

PS: The server sends all the clients a message about who joined a table or who quit one, and messages about the moves of the clients to a table (there are 4 players playing on a table)
Pages: [1]
SHC (21 views)
2015-08-01 03:58:20

Jesse (19 views)
2015-07-29 04:35:27

Riven (39 views)
2015-07-27 16:38:00

Riven (21 views)
2015-07-27 15:35:20

Riven (24 views)
2015-07-27 12:26:13

Riven (14 views)
2015-07-27 12:23:39

BurntPizza (35 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (28 views)
2015-07-24 06:06:53

NoxInc (36 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!