Re: Buffer Size Command Hanging (General questions)
Here's how I would do it. Using send method send the command, and then call Receive or even better ReceiveLine to consume the data.
As data arrives, check if it contains the needed pattern. This is easy to do, except you have to prepare for possibility that data arrives byte by byte, so you always have to search previously received data too.
I suggest it's always good to store last received line. This is small amount of data to search, and can easily be handled using ReceiveLine method.
I can't make this as general approach because search patterns can contain more than one line. You can, however, since you know you only need one line of data for the search.
Does this help?
Kreso
Complete thread:
- Buffer Size Command Hanging - mmorton, 2009-07-07, 14:32
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 14:43
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 15:27
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 15:44
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:30
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 17:41
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:56
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:15
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:21
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:49
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 20:08
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 20:53
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 21:23
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 22:04
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 00:31
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 10:28
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:16
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:29
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:33
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:45
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 12:03
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 12:54
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:13
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:17
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:21
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:24
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:28
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:35
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 14:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 14:57
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 15:10
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 14:57
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 14:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:35
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:28
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:24
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:21
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:17
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:13
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 12:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 12:03
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:45
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:33
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:29
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:16
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 10:28
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 00:31
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 22:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 21:23
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 20:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 20:08
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:49
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:21
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:15
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:56
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 17:41
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:30
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 15:44
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 15:27
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 14:43