Ticket #2820: TestIoControlCommand.cpp
File TestIoControlCommand.cpp, 294 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | #include <boost/asio.hpp> |
2 | |
3 | struct MyIoControl |
4 | { |
5 | // IoControlCommand expressions |
6 | int name(); |
7 | void * data(); |
8 | }; |
9 | |
10 | int main(int argc, char * argv[]) |
11 | { |
12 | boost::asio::io_service service; |
13 | boost::asio::ip::udp::socket sock(service); |
14 | |
15 | MyIoControl ioCtlOp; |
16 | sock.io_control(ioCtlOp); |
17 | return 0; |
18 | } |