|
|
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
|
|
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) { ... }
|
|
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
|
|
|
Guest |