Re: [xSocket-develop] one more question about DataHandler
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@go...> - 2007-10-29 10:49:00
|
Hello Jeter, the IDataHandler interface defines a call back method "onData" to notify that data for a dedicated connection has been received. The semantic of the "onData" is equals to "onReceive". Please not, that only the data received event will be notified by the call back method. Based on the passed over connection you are able to read the reveiced data by (convenience) read methods. To send data, you have just to call the write methods of the connection. If autoflush is activated (default) the data will be written immediately. If not, the data will only be sent by explicitly calling of the flush method, or by closing the connection. A notification call back method like "onWrite" or "onWritten" doesn't exist. Gregor 2007/10/29, Jeter Azure <jet...@gm...>: > > > Dear All, > I know that xSocket has IDataHandler to process incoming data, and > this is just like onReceive, do we have > onWrite to process message prepare to send out?? Thanks a lot... > > -- > Jeter Chen. > Azure Information Technology Co., Ltd. > Tel: +886-2-2392-1558. > Fax: +886-2-2322-4217. > Email: je...@ai... > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |