marcick Well-Known Member Licensed User Longtime User Jan 10, 2018 #1 I have implemented a ServerSocket to receive data packet from devices. In the sub "AStream_NewData (Buffer() As Byte)" what happens if a new data packet arrive when I'm still inside the sub processing the previous ?
I have implemented a ServerSocket to receive data packet from devices. In the sub "AStream_NewData (Buffer() As Byte)" what happens if a new data packet arrive when I'm still inside the sub processing the previous ?
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2018 #2 The event will only be raised once the current code finishes executing. It can only happen if this sub is a resumable sub and after you called Wait For or Sleep. Upvote 0
The event will only be raised once the current code finishes executing. It can only happen if this sub is a resumable sub and after you called Wait For or Sleep.
marcick Well-Known Member Licensed User Longtime User Jan 10, 2018 #3 It is not a resumable sub. Thank you. Upvote 0