# Socket/XMLSocket class. Which to choose

**URL:** https://forum.kirupa.com/t/socket-xmlsocket-class-which-to-choose/301166
**Category:** Uncategorized
**Created:** [December 4, 2009, 11:39am UTC](https://forum.kirupa.com/t/socket-xmlsocket-class-which-to-choose/301166 "2009-12-04T11:39:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![OmniNL](https://avatars.discourse-cdn.com/v4/letter/o/8dc957/32.png) [@OmniNL](https://forum.kirupa.com/u/OmniNL)
#### Post date: [December 4, 2009, 11:39am UTC](https://forum.kirupa.com/t/socket-xmlsocket-class-which-to-choose/301166/1 "2009-12-04T11:39:10Z")

</div>

Hi,

Ive been trying to use the Socket class for a while now but when i search for any tutorials i get more pages that review the XMLSocket class. What’s the difference? And which one should i use for realtime multiplayer games?

So far i already got a server/client written with the Socket class but it’s given me some trouble reading/editing the binary data in Java. Because it’s in AMF format.

Should i use XMLSocket?

Thanks
