Hi All, I'm working on a piece of code that should run on a special real-time kernel that supports only a minimal set of win32 api. I would like to use boost sockets and threads but it seems there are some dependencies on win32 api not supported by that system (i.e. WSARecvFrom, WSASend, WSASocketA, WSAStringToAddressA). Is there a way to build boost libs with some options so that the C socket calls are used instead? I'm asking too much? Regards Gianni
I'm working on a piece of code that should run on a special real-time kernel that supports only a minimal set of win32 api. I would like to use boost sockets and threads but it seems there are some dependencies on win32 api not supported by that system (i.e. WSARecvFrom, WSASend, WSASocketA, WSAStringToAddressA). Is there a way to build boost libs with some options so that the C socket calls are used instead? I'm asking too much?
Try compiling with BOOST_ASIO_DISABLE_IOCP macro defined. Does it help?
Il 1/29/2011 9:46 PM, Igor R ha scritto:
I'm working on a piece of code that should run on a special real-time kernel that supports only a minimal set of win32 api. I would like to use boost sockets and threads but it seems there are some dependencies on win32 api not supported by that system (i.e. WSARecvFrom, WSASend, WSASocketA, WSAStringToAddressA). Is there a way to build boost libs with some options so that the C socket calls are used instead? I'm asking too much? Try compiling with BOOST_ASIO_DISABLE_IOCP macro defined. Does it help?
Thanks, the macro you suggested removes the following dependencies: CreateIoCompletionPort GetQueuedCompletionStatus PostQueuedCompletionStatus I'm going to try other flags but do you know if there is a way to remove also the following calls and use the C functions? WSARecv WSARecvFrom WSASend WSASendTo WSASocketA WSAStringToAddressA Regards Gianni
Thanks, the macro you suggested removes the following dependencies:
CreateIoCompletionPort GetQueuedCompletionStatus PostQueuedCompletionStatus
I'm going to try other flags but do you know if there is a way to remove also the following calls and use the C functions?
WSARecv WSARecvFrom WSASend WSASendTo WSASocketA WSAStringToAddressA
I've looked into the code, and it seems that you cannot remove dependecy on these API, as long as defined(BOOST_WINDOWS) || defined(__CYGWIN__)
Il 1/31/2011 8:30 PM, Igor R ha scritto:
Thanks, the macro you suggested removes the following dependencies:
CreateIoCompletionPort GetQueuedCompletionStatus PostQueuedCompletionStatus
I'm going to try other flags but do you know if there is a way to remove also the following calls and use the C functions?
WSARecv WSARecvFrom WSASend WSASendTo WSASocketA WSAStringToAddressA
I've looked into the code, and it seems that you cannot remove dependecy on these API, as long as defined(BOOST_WINDOWS) || defined(__CYGWIN__)
Unfortunately I noticed that too. Thanks again.
participants (2)
-
Gianni Ambrosio
-
Igor R