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

Using XF for socket listening application Options
bnini
Posted: Friday, February 12, 2010 4:29:59 PM
Rank: Member
Groups: Member

Joined: 11/16/2009
Posts: 3
Points: 9
Location: Portugal-Lisbon
Hello to all,

I started using XF components at some time now because it was the only way that I have found to stop loosing messages on a server application that I have wrote.

This server application exists to receive text messages from GPS devices that tipically sends text messages witha lenght of 210 bytes.

The only problem that I am having is related to the way that these equipments work. They open a socket connection to the XF server and then in a 30 second operation they send position messages every 7 seconds. the problem is that when the server receives the first message is calls the ReadCompleated event and discarts all of the other messages until the equipment disconnets the socket.

Having in mind that the XF was not created to deal with this kind of operation, I leave here a question: Is ther any way to receive all the messages having the socket openned until the client disconnects?

Thanks,

BN
admin
Posted: Saturday, February 13, 2010 6:35:51 AM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
Do you call ReadAsync in ReadCompleated handler? In order to read next chunk of data you have to call ReadAsync again.
If you still have the problems, please show me you code.
bnini
Posted: Saturday, February 13, 2010 4:46:56 PM
Rank: Member
Groups: Member

Joined: 11/16/2009
Posts: 3
Points: 9
Location: Portugal-Lisbon
Hello.
Thanks for the fast answer.

No I wasn't. I am building a new application regarding this, and I will give feedback later on.

Thanks

BN
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.063 seconds.
10 queries (0.016 seconds, 25.40%).

yaf_pageload: 0.004
yaf_topic_info: 0.001
yaf_forum_list: 0.001
yaf_forum_listpath: 0.002
yaf_forum_listpath: 0.001
yaf_post_list: 0.002
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_active_listtopic: 0.002