|
Boost Users : |
Subject: Re: [Boost-users] [asio] Cloning a WSA socket (windows)
From: Igor R (boost.lists_at_[hidden])
Date: 2009-02-03 12:17:24
>
>
> SOCKET copy(WSASocket(FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO
> , FROM_PROTOCOL_INFO, &info, NULL, NULL));
>
> ip::tcp::socket scopy(ios, ip::tcp::v4(), copy);
>
>
For debug purposes, did you check what the value of "copy" is? Did you try
to perform a simple winsock i/o operation on it? I.e., are you sure that
you've got valid tcp socket descriptor?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net