Subject: [Boost-bugs] [Boost C++ Libraries] #5156: copying opened socket between processes (Microsoft Windows)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-03 14:55:05
#5156: copying opened socket between processes (Microsoft Windows)
------------------------------+---------------------------------------------
Reporter: irol@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Hello,
I use WSADuplicateSocket to copy opened socket from one process to
another. I try to attach received socket:
boost::asio::io_service io_service;
tcp::socket s1(io_service);
... here I'v got opened socket (receivedSocket) through shared memory from
other process
... using WSADuplicateSocket
char sText[] = "Open socket received !\r\n";
int nRet = send(receivedSocket, sText, strlen(sText), 0); // this works
fine
s1.assign(boost::asio::ip::tcp::v4(), receivedSocket); // here is an
error: nr=87 msg=Invalid Parameter
I tried debug and it lead me to call
CreateIoCompletionPort
What is wrong ? Is it a bug ? Or my misunderstanding ?
Regards, Irek Olchawski.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5156> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC