mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: synchronous client and sever socket messaging
Date Mon, 05 Nov 2012 15:55:42 GMT
Le 11/5/12 4:17 PM, daniel vettori a écrit :
> suppose three clients and one server are there....now one client connects
> to server..and at that time, dont want other two clients to interact with
> socket server untill the processing of message based on delimiter get over
> between server and the first client.......
There is nothing you can do on the server to forbid a client to actually 
send some message to the server. This is a server...

What you can do is to send a message to all the clients telling them 
that they should not send a message until the server send a ack to them, 
assumin the clients *will* respect this information. Again, this is all 
related to the protocol you define, it has nothing to do with the MINA 
API or whatever IO.

This is really a bizare requirement...

Emmanuel Lécharny

View raw message