How to use socket as service? write a proxy?

civet's Avatar

civet

29 Jun, 2010 07:03 AM

I know socket is low level networking interface. now, we are developing a game with socket and we have custom protocol. where to place the socket connection in the framework, this confuse me.

  1. 1 Posted by myrddin on 29 Jun, 2010 08:07 AM

    myrddin's Avatar

    Hello,

    For me, I would place it in a Proxy used as a Singleton because of its persistent connection.

  2. 2 Posted by civet on 29 Jun, 2010 10:02 AM

    civet's Avatar

    @myrddin thx, i saw somebody write SocketProxy. does it all things solved? anybody show an example for that?
    P.S. this post should be post on Question, I'm sorry i made a mistake ^^;

  3. Support Staff 3 Posted by Shaun Smith on 29 Jun, 2010 01:52 PM

    Shaun Smith's Avatar
  4. 4 Posted by civet on 29 Jun, 2010 03:21 PM

    civet's Avatar

    Joel's article helps a lot. I had read best-practices before i started.
    Thanks a lot!!

  5. 5 Posted by myrddin on 29 Jun, 2010 03:43 PM

    myrddin's Avatar

    Sorry :(
    I'm confusing Proxies and Services sometimes.

  6. Stray closed this discussion on 10 Feb, 2011 05:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac