0

Any Boost like ones? Or any other Windows, Mac, Linux library's for passing established TCP connection from one process to another? So I actually did not even know it is possible but seems it is! So I defiantly want to use such feature in my server!) And I would love to see any cross-platform lib helping me to do that. Are there any such library's?

Community
  • 1
  • 1
Rella
  • 65,003
  • 109
  • 363
  • 636

2 Answers2

0

Yes, QT provides this functionality!
Read more here.

Tom
  • 908
  • 1
  • 6
  • 14
  • Hm... I love Qt but could you post a link on sharing accepted connections with it or provide a code sample here? – Rella Mar 15 '11 at 18:00
0

Boost.Process though it is not yet accepted into Boost.

Community
  • 1
  • 1
Sam Miller
  • 23,808
  • 4
  • 67
  • 87
  • Hm.. Could you provide a link that shows an example on how to use Boost.Process for such things? (I thought it can only lunch applications with params...) – Rella Mar 15 '11 at 17:59
  • @Blender I'm not sure what you mean, the library wrappers `fork`. Is that what you need? – Sam Miller Mar 15 '11 at 18:28
  • I need a library suited for passing accepted TCP connection from one process to another. – Rella Mar 15 '11 at 18:58
  • @Blender again, I'm not sure what you're asking. Maybe you should edit your question to clarify? File descriptors that do not have their `FD_CLOEXEC` flag set will be inherited by the child process after `fork`. – Sam Miller Mar 15 '11 at 19:04
  • @Blender my experience is with Linux, so those are the terms I use. The Boost.Process library wraps the fork system call into a nice interface. Presumably the other supported platforms are similarly wrapped. If you have specific questions, I suggest you ask them separately. – Sam Miller Mar 16 '11 at 00:02