[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 10:31:53 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 23 Feb 2017 04:31:56 -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=iTi7TzoLpYfjUEnGWoBjzvV87mo8/NGiX5cfgPj/CT8=; b=UPEeAeSzlc2IFICqpq5ApQNPneYEvmE2HuxlxOrhh0N3ViH5H7ZUamDOrtLPda5rN/ rsiKCewcRNxBy6jbPmwv5DHKaxOrAqULn/Mrqi+s37SDKUCSgp4y27ARZBIupo/8anCV BxZGQ91yRc5x2TpfXL12hwirHAOtD/RsYDzzqCcjW0a8fU3OaOL1cmIqsOLbTwtvYT3+ 3HE0aAUJxg5OeeFIvgWAZVLDS2rRbx37r8G/ls4y+Io7YHg7hNC0PL9v28hPZgwcMlkE Bp3I1TUY65SXkhicUd/06mxzJyy83uJRDB1KaLOHIM8tLkDifV/i1XEuD4WwdI8U1bly 3+Cg==
- 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