[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Can the pipe be used in event_new function as file descriptor(evutil_socket_t) in windows?
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] Can the pipe be used in event_new function as file descriptor(evutil_socket_t) in windows?
- From: simon zhang <hapopen@xxxxxxxxx>
- Date: Thu, 10 Jan 2013 06:09:32 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 09 Jan 2013 17:09:40 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dILUtb2aZgj6t1jd6kG7Jhb7rmyKCrrnlDFnisQ8t0o=; b=NmY+9PjMQq9XLAJ8AAlS4kQG1jPlrGfsnjUhbxT4RUgclePunC7CJsmxSLA31tq12t xV5ES5FXFAq/BtqnvxWhoaPnxWzCXDxwwLKwh4CTeZvopvTR/rCpE0MmhUdHl3qKgFFH zLZiuxFuLEWP+b/wXbtfh3AVZGmgzuJ7LmZ8szRbldyeLf8iVUHJrlT0f0oKlE0bJJzG Ukm4izTV9Wyyhm8vNHvxQicPA10t8uL75d3mK8cqH7d9/xheYvyWQ758PelBb1ZPmxWP mx4kr9mhinp1XUMNHE7c/8fTVO5KvCx/OeXKZ4BL9aEDfC2xkj6rWezJqH6EHI5uF3LX CKGA==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
I wanted some linux code work in the windows.This is a multi thread program.I hope that the parent thread and child thread to pass data through the pipe.
But no file descriptor in windows.The CreatePipe function can creat a pipe with read HANDLE and write HANDLE.But libevent don't konw HANDLE.I can not use it in the event.
What is good way?Can't the pipe be used?