skypjack / uvw

Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!
MIT License
1.84k stars 209 forks source link

How to retrieve ErrorEvent info? #256

Closed nmkoremblum closed 2 years ago

nmkoremblum commented 2 years ago

Hi!

I am quite new to using libuv and uvw, I am trying to handle error events, let's say from TCP/UDPHandles. But I am not being able to use the emitter's methods such as what() or name(), etc. when an uvw::ErrorEvent raises.

Could someone please show me how to use such methods?

Thanks in advance!

nmkoremblum commented 2 years ago

Already figured out, the uvw/emitter.hpp header was missing.