# Java question

**URL:** <https://forum.kirupa.com/t/java-question/186236>\
**Category:** programming\
**Created:** [April 20, 2006, 12:03am UTC](https://forum.kirupa.com/t/java-question/186236 "2006-04-20T00:03:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [April 20, 2006, 12:03am UTC](https://forum.kirupa.com/t/java-question/186236/1 "2006-04-20T00:03:22Z")

</div>

hi, I’ having troubles with this:  
here’s the code of a chatroom in Java(Flash+Java chatroom):  
[http://www.gotoandplay.it/\_articles/2003/12/xmlSocket.php](http://www.gotoandplay.it/_articles/2003/12/xmlSocket.php)  
can someone tell me where is the part in this code that let you send messages to every online person?

---

<div class="post-metadata">

**Author:** ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)\
**Post date:** [April 20, 2006, 12:35am UTC](https://forum.kirupa.com/t/java-question/186236/2 "2006-04-20T00:35:27Z")

</div>

I don’t think that code has code to send to every person.

thats the part that tripped my up on my own server was handling clients, i wanted it ot work more like a router than a hub, so yeah silly threadPool Extensions

don’t think thats even multithreaded(Supports more than one person at a time)

---

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [April 20, 2006, 10:38pm UTC](https://forum.kirupa.com/t/java-question/186236/3 "2006-04-20T22:38:18Z")

</div>

then what can I use to build one?(multiuser)

---

<div class="post-metadata">

**Author:** ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)\
**Post date:** [April 20, 2006, 10:43pm UTC](https://forum.kirupa.com/t/java-question/186236/4 "2006-04-20T22:43:49Z")

</div>

you want to make a server or a game?

game use any of the servers on the page 2

Server pretty much any programming language that supports TCP sockets

Java,Python,C++,C,BASIC,Ruby,C#, and lots more

---

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [April 20, 2006, 11:03pm UTC](https://forum.kirupa.com/t/java-question/186236/5 "2006-04-20T23:03:16Z")

</div>

so if I want to make a game, do I absolutly need a multiuser server?  
is it possible to program one myself? If I can, will it be hard?

---

<div class="post-metadata">

**Author:** ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)\
**Post date:** [April 20, 2006, 11:16pm UTC](https://forum.kirupa.com/t/java-question/186236/6 "2006-04-20T23:16:35Z")

</div>

You need a server but do not need to program one you can get one already made.

You can program one yourself if you wish, to make a multiuser server it will take quite a while becuase you need to control everything so you can tell everyone what data they get

For a game you only need a multiuser server if you want more than one user to be able to use the game at once
