Jump to content

DavidS

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. DavidS

    ReceiveFrom blocking

    Thank you for your reply. Yes it is for UDP messages. Currently using .Receive inside an OnDataAvailable procedure and it works fine, retrieving the message contents. This is obviously only called when data is available. If .Receive is simply replaced with .ReceiveFrom, and a message arrives, then execution disappears into TWSocket code and never returns. Putting it in a try except does not help. Maybe there is another way I can retrieve the senders address?
  2. DavidS

    ReceiveFrom blocking

    Using old TWSocket 5.31 Using .Receive in an OnDataAvailable procedure works great. When I try .ReceiveFrom, it hangs the code and has to be killed with task manager. Is there any way of making .ReceiveFrom non blocking? Thanks for any help.
×