[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #3270 [Tor Relay]: Libevent callbacks should take sockets as evutil_socket_t, not int
#3270: Libevent callbacks should take sockets as evutil_socket_t, not int
-----------------------+----------------------------------------------------
Reporter: nickm | Owner:
Type: defect | Status: new
Priority: major | Milestone: Tor: 0.2.2.x-final
Component: Tor Relay | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
On 64-bit Windows, SOCKET of type UINT_PTR, which is 64-bit, whereas int
is only 32-bit. To solve this, Libevent 2 defines a type
"evutil_socket_t" which is SOCKET on windows and int elsewhere. We should
revise all of our libevent callbacks that receive sockets so that they
receive evutil_socket_t instead, when libevent2 is present. If we are
built against libevent 1.4, however, we should just #define
evutil_socket_t to int.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3270>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs