Hi,<br><br>Thank you very much for the reply.<br><br>The problem is that it's a Facebook game and we don't have total control on the auth process. The thing we're trying to prevent is users with two or more Facebook accounts. (One can also argue that it's not our problem but Facebook's.)<br>
<br>So a "soft" solution (like auth) does not seem to work, at least IMHO. That's why I am asking what I can do with Netty at the connection level.<br><br>Any other suggestions?<br><br><div class="gmail_quote">
On Tue, Nov 23, 2010 at 16:08, Bruno de Carvalho <span dir="ltr"><<a href="mailto:kindernade@gmail.com">kindernade@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I’d advise you to implement some sort of authentication or<br>
identification system so that only one instance of a given ID is<br>
active on the server at any given time.<br>
<br>
Something like…<br>
- Client connects;<br>
- Optionally server sends auth challenge (or just sits and waits for<br>
the client’s ID);<br>
- Client sends ID (or authentication info);<br>
- Server checks ID against online clients;<br>
- Server either rejects connection(1) or accepts and sends the other<br>
connection for the same ID down(2).<br>
<br>
I'd go for 2 as the server might take some minutes to realize a<br>
severed connection has been lost. OTOH, it's prone to ghosting<br>
(someone else knowing your ID and taking you down repeatedly) unless<br>
you do auth to go along with it.<br>
Really depends on the kind of game you're doing.<br>
<br>
<br>
Cheers,<br>
Bruno<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, Nov 22, 2010 at 6:18 PM, Ersin ER <<a href="http://ersin.er" target="_blank">ersin.er</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> We're developing a game server using Netty and I would like to get your<br>
> advise on the following problem:<br>
><br>
> How can I prevent multiple simultaneous connections from the same client<br>
> using Netty at the server side?<br>
><br>
> Any suggestions or references are welcome!<br>
><br>
> Regards,<br>
><br>
> --<br>
> Ersin Er<br>
><br>
</div></div>> _______________________________________________<br>
> netty-users mailing list<br>
> <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
><br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a></blockquote></div><br><br clear="all"><br>-- <br>Ersin Er<br>