Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #3270

Closed (moved)
(moved)
Open
Created May 23, 2011 by Nick Mathewson@nickm🍬

Libevent callbacks should take sockets as evutil_socket_t, not int

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking