Re: [xSocket-develop] little feature
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@go...> - 2008-11-18 16:25:28
|
Hi Jimmy, the NonBlockingConnection as well as the BlockingConnection support´s marking. You can set a read mark, read data, and reset the read position the marked position. Do you know this feature? For a more detailed explanation see tutorial chapter 15. The next version of xSocket will support a isServerSide() method Gregor 2008/11/18 yanping gao <yan...@gm...> > hi Gregor: > > When I try to implement my NIO Server, I found some little feature is > lack: > > 1. in xsocket, now support get by lenght and get by delimiter, is most > case, it is OK; but some times, I cannot > get the packet's length or delimiter before decoding; so I need try > decode and valide checksum; in this case, need > pushback stream, maybe unread(...) is preferable. > > 2. INonBlockingConnection is both client and server connection, if I > could know the connection is which side, it will help > for processing, maybe need isServerSide() in connection. > > -- > Jimmy Gao > Software Senior Product Manager > yan...@gm... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |