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
|
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.
|
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
|