tidwall/evio

Writing to UDP

Opened this issue · 3 comments

Is this still the case?

#19

You can write to UDP when the Data event fires by returning bytes to the output. Calling Wake will force a Data to fire and should allow for arbitrary writes to the UDP connection.

Thanks for the quick response :). Is this quite stable and ready for production?

Also in terms of multi threading, do we need to use locks etc to access data across different events?

Evio is production ready.
Yes, If you use multithreading then you should use locks for shared data.