Re: Windows Compilation problem

2008-06-05 Thread Marc Lehmann
On Wed, Jun 04, 2008 at 04:29:46PM -0700, Matt Tolton <[EMAIL PROTECTED]> wrote: > Any pointers here? The fd that I'm using is a socket obtained from > the winsock socket() call. Here is the code used to initialize it: That doesn't work - the libev API requires file descriptors on all platforms.

Re: Windows Compilation problem

2008-06-05 Thread Marc Lehmann
On Wed, Jun 04, 2008 at 08:18:09PM -0700, Matt Tolton <[EMAIL PROTECTED]> wrote: > This allowed things to work until a socket was closed and fd_ebadf > (and hence fd_valid) was called, causing another call to note that if ev_ebadf is called then you have a programming bug in your application, name

Re: libeio, Windows

2008-06-05 Thread Marc Lehmann
On Wed, Jun 04, 2008 at 05:37:08PM -0600, Tony Arcieri <[EMAIL PROTECTED]> wrote: > > They are complementary, not exclusive to each other. Using one does not > > preclude using the other, in fatc, most programs would probbaly take > > advantage of both if both are available. > > My main use case

Re: libeio, Windows

2008-06-05 Thread Tony Arcieri
On Thu, Jun 5, 2008 at 2:38 AM, Marc Lehmann <[EMAIL PROTECTED]> wrote: > Yes, but neither does libev or any event-library support that > completely. It is simply unreasonable to expect a single mechanism to work > with every type of hardware, software and protocol. Exactly, and for that reason P

Re: libeio, Windows

2008-06-05 Thread Marc Lehmann
On Thu, Jun 05, 2008 at 02:56:12AM -0600, Tony Arcieri <[EMAIL PROTECTED]> wrote: > > Ultimately, it is the job of the application to chose the correct > > mechanism, a good library will offer both and lets the app select the most > > appropriate interface. > > My main intended use case for libei

Error when configuring libeio

2008-06-05 Thread Paul Colomiets
Hi, I'm getting this error, while configuring: configure: error: cannot find install-sh or install.sh in "." "./.." "./../.." Bigger log below. Can anybody help me? -- Thanks, Paul [EMAIL PROTECTED] tmp]$ cvs -z3 -d :pserver:[EMAIL PROTECTED]/schmorpforge co libeio cvs checkout: warning

Re: Windows Compilation problem

2008-06-05 Thread Chris Hulbert
FYI, i just had the same problem. To convert from a socket to a file descriptor, you'll need to use this function: // for win32: convert from socket to file descriptor // // http://msdn.microsoft.com/en-us/library/bdts1c9x(VS.71).aspx int fd = _open_osfhandle(socket,0); On Thu, Jun 5, 2008

Re: libeio, Windows

2008-06-05 Thread Tony Arcieri
On Thu, Jun 5, 2008 at 8:45 AM, Marc Lehmann <[EMAIL PROTECTED]> wrote: > > I am sorry, but we must be talking past each other. libeio cannot give you > readyness notifications, and using it for I/O on sockets is simply broken > design. > Yeah, as I said before: my bad, libeio does not fit the Pro

Binding Libev with Digitalmars' D on windows

2008-06-05 Thread Chris Hulbert
Hi, After much mucking around, i've finally gotten Libev, D, and Windows to all play nicely (in other words, compile and runs and serves a simple webpage successfully). I'm using the D bindings from here: http://git.llucax.com.ar/?p=software/ev.d.git;a=blob;f=ev/d.d;h=f12a4acdad2f8adf6fa5a524935b8