[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Multi-threaded support in libevent
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] Multi-threaded support in libevent
- From: Tôn Loan <loanttk.vnuit@xxxxxxxxx>
- Date: Thu, 23 Feb 2017 11:20:06 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 23 Feb 2017 05:20:09 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=iciw6c+ZTFWxn0nkKpjzeW6zeVuzp1r0bszJ3ETFbD4=; b=kPfO34HkJyE1hd9V3fzS6/9yBPh9e0JsPAPTYn7AqWPDxd+dZjOMeYuWs2KByAurLA zaA8Y/8152j4j5ps/7ERZWC16rEs/I4cekNkGZ09/0zUBvqAIZcmvD5Qdcq+uzoebDdg r2kvMkz9O7K2FCA3RnZQ95Fk2hEVkgf5KcS+EJUBePErAMth8KxfdNAS4qtiVEJC+e7i 5wVBk5eAehPDvwbm0BV9/ZA7drYo/zXzXvusAlp6/fuAXPAvCUfo824LsByUQpn+SA6B VJ8VNpSU21zS3gVpT0BJreIuMZ7uWhetEA+kLHYXOPx+9tTEoPYOKSKtuzKviZoyM8yB Kk5A==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hello list,
I'm new to libevent and trying to learn some more about it for potential use in a project. Here is my problem.
I have one server that has 5 threads. Each thread bounds to a different UDP
port (separate socket). Each thread listens on separate socket and receive
the message from client.
I used each event_base for each thread and added signal events to each
event_bases But only one event_base will receive signals.
So, is there any solution for each event_base that will receive its own
signals?
Any ideas or sample code would be extremely helpful. Thank you so much.
Best Regards,
Loan Ton