Need help with very basic and simple connection

Options
Miraz
edited January 2013 in Photon Server
Hello everybody, i just registered here and so far im full of joy and happy to have photon :)

So, I use newest unity. Not pro. And i want to understand how photon works. I have checked tutorials/demos what came with photon but even if all code is in one file, it's very hard to understand.


here is what i want to know:

1. Connect server
2. How to handle data ie.
getdata data
select case data
case "MSG" : call parseChat(data, len(data))


Thats all. Thank you for reading whole topic :)

Comments

  • Tobias
    Options
    Hey there and welcome!

    So, your question is more about the client side of things?
    The Server SDK only includes some "test" or sample clients. You better download a client SDK for the platform you target, too. These include demos that connect, join rooms and chat or send other (position) data.

    As you want to work on the server side, too, I'd suggest you start with "Lite". This is a server logic application that's simple. The Demos "Realtime" and "Chat" (not in all client SDKs) are simple, too and call operations (join room, raise event, etc). The server side code for those is relatively simple and could be modified server side. Lite is part of the "Default" setup, which can be started by Photon Control.

    Please let us know if you have more concrete questions. Then we can give better info.
    Also, read: http://doc.exitgames.com/photon-server
  • Philip
    Options
    I would recommend to check the hello world tutorial before you go into the demos - that should get you started ...
    http://doc.exitgames.com/photon-server/ ... #cat-Hello World
  • Thanks for information. I start reading and i will reply here if i get stucked.