Welcome Guest Search | Active Topics | Members | Log In | Register

Seprate Implementation of OperationCompleteDelegate & OperationFailureDelegate Options
mcamail2002
Posted: Wednesday, December 23, 2009 4:00:55 AM
Rank: Newbie
Groups: Member

Joined: 4/3/2009
Posts: 2
Points: 6
Location: India

Hi,

I,m trying to implement XF.Network in my test application.how i make seprate handler for OperationCompleteDelegate & OperationFailureDelegate.

Thanks
Ravi
mcamail2002@gmail.com

admin
Posted: Wednesday, December 23, 2009 4:13:36 AM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
Do you mean not using anonymous delegate?

Code:
private void ProcessRequest(IConnection connection)
{
    ...
    connection.ReadAsync(buffer, OnReadComplete, OnReadFailure);
    ...
}

private void OnReadComplete(int bytes, IConnection connection)
{ ... }

private void OnReadFailure(int error, IConnection connection)
{ ... }
mcamail2002
Posted: Wednesday, December 23, 2009 4:23:11 AM
Rank: Newbie
Groups: Member

Joined: 4/3/2009
Posts: 2
Points: 6
Location: India
Thanks for quick reponse.
yes i dont want to use anonymous delegate. actullay i ,sending the recurrsive request from the client to the server and trying to get the response from server(echo server). i need seprate handler for close the connection & receive request and send response failure.

Thanks
ravi
mcamail2002@gmail.com
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.076 seconds.
10 queries (0.026 seconds, 34.21%).

yaf_pageload: 0.012
yaf_topic_info: 0.002
yaf_forum_list: 0.002
yaf_forum_listpath: 0.002
yaf_forum_listpath: 0.001
yaf_post_list: 0.003
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_active_listtopic: 0.001