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

build 0.8.304 Options
admin
Posted: Sunday, October 12, 2008 6:34:08 PM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
In this build WriteAsync operations are fixed.

File Attachment(s):
XF.Server.dll (195kb) downloaded 16 time(s).


rajaguru731
Posted: Monday, October 13, 2008 2:18:50 AM
Rank: Member
Groups: Member

Joined: 8/25/2008
Posts: 9
Points: 33
Location: india
ReadAsync and WriteAsync are not working in client side...
admin
Posted: Monday, October 13, 2008 3:27:26 AM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
Can you provide more details? Please show your code and describe the problem.

Please note that client side API (ConnectAsync) and subsequent read/write operations may be not functional yet.
rajaguru731
Posted: Monday, October 13, 2008 5:20:54 AM
Rank: Member
Groups: Member

Joined: 8/25/2008
Posts: 9
Points: 33
Location: india
This is my code:


using System;
using System.Text;
using XF;

namespace Client
{
class Program
{
private const string request = "test";

static void Main()
{
Network.ConnectAsync("192.168.2.71", 14106, Encoding.Default.GetBytes(request), OnConnect);

Console.ReadKey();
}

private static void OnConnect(IConnection connection)
{
connection.WriteAsync(Encoding.Default.GetBytes("reply"));
connection.ReadAsync ( OnReadComplete);
}

private static void OnReadComplete(IConnection sender, IMemoryBuffer buffer, int bytes)
{
Console.WriteLine(Encoding.ASCII.GetString(buffer.Data));
}
}
}

I got "Handle is not initialized" error.
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.078 seconds.
12 queries (0.025 seconds, 32.05%).

yaf_pageload: 0.005
yaf_topic_info: 0.001
yaf_forum_list: 0.001
yaf_forum_listpath: 0.001
yaf_forum_listpath: 0.001
yaf_post_list: 0.009
yaf_usergroup_list: 0.001
yaf_attachment_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_active_listtopic: 0.002