#56 [2.0.10] evbuffer_write on Windows doesn't work on files

open
nobody
None
5
2011-02-03
2011-01-21
No

Using a cross-compiled for Windows libevent 2.0.10 library, evbuffer_write() on a fd which is a file returns error "An operation was attempted on something that is not a socket".

I'm not sure if evbuffer_write() is supposed to work on files, other people say it works on Linux, actually its not my code, I am porting the latest version of an application that just started to use version 2 of libevent, everything works fine except that file write.

Discussion

  • Nick Mathewson

    Nick Mathewson - 2011-01-21

    evbuffer_write does indeed only work on sockets. It would be neat to support more transport mechanisms in a later version of libevent, if somebody wants to write the code and can do it cleanly.

     
  • Nick Mathewson

    Nick Mathewson - 2011-02-03
    • labels: 1036029 -->
    • milestone: 897589 -->