How to use socket as service? write a proxy?
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.
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
1 Posted by myrddin on 29 Jun, 2010 08:07 AM
Hello,
For me, I would place it in a Proxy used as a Singleton because of its persistent connection.
2 Posted by civet on 29 Jun, 2010 10:02 AM
@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 ^^;
Support Staff 3 Posted by Shaun Smith on 29 Jun, 2010 01:52 PM
Sounds like it should be a Service:
http://www.insideria.com/2010/06/an-introduction-to-robotlegs-a-2.html
http://wiki.github.com/robotlegs/robotlegs-framework/best-practices...
4 Posted by civet on 29 Jun, 2010 03:21 PM
Joel's article helps a lot. I had read best-practices before i started.
Thanks a lot!!
5 Posted by myrddin on 29 Jun, 2010 03:43 PM
Sorry :(
I'm confusing Proxies and Services sometimes.
Stray closed this discussion on 10 Feb, 2011 05:28 PM.