Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to use Boost.asio for the multicast sender?
    primarykey
    data
    text
    <p>I'm trying to use boost.asio to implement a multicast sender. I have a my thread implementation and I need my boost.asio only for management of the socket.</p> <p>I looked at the example on the site of boost but I did not understand and I do not Compile. Where can I find what I need?</p> <p>The complile errors are: (I have tried this example: <a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/multicast/sender.cpp" rel="nofollow">http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/multicast/sender.cpp</a>)</p> <blockquote> <p>Error 3 error C2653: 'asio' : is not a class or namespace name c:\Documents and Settings\GG\Desktop\sender.cpp 2</p> <p>Error 4 error C2653: 'asio' : is not a class or namespace name c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 5 error C2143: syntax error : missing ')' before '&amp;' c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 6 error C2143: syntax error : missing ';' before '&amp;' c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 7 error C2460: 'sender::io_service' : uses 'sender', which is being defined c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 9 error C2653: 'asio' : is not a class or namespace name c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 10 error C2143: syntax error : missing ';' before '&amp;' c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 13 error C2059: syntax error : ')' c:\Documents and Settings\GG\Desktop\sender.cpp 24</p> <p>Error 14 error C2065: 'multicast_address' : undeclared identifier c:\Documents and Settings\GG\Desktop\sender.cpp 26</p> <p>Error 15 error C3861: 'endpoint_': identifier not found c:\Documents and Settings\GG\Desktop\sender.cpp 26</p> <p>Error 16 error C2531: 'sender::multicast_address' : reference to a bit field illegal c:\Documents and Settings\GG\Desktop\sender.cpp 26</p> <p>Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\Documents and Settings\GG\Desktop\sender.cpp 26</p> <p>Error 18 error C2327: 'sender::io_service' : is not a type name, static, or enumerator c:\Documents and Settings\GG\Desktop\sender.cpp 27</p> <p>Error 19 error C2061: syntax error : identifier 'io_service' c:\Documents and Settings\GG\Desktop\sender.cpp 27</p> <p>Error 20 error C2059: syntax error : ')' c:\Documents and Settings\GG\Desktop\sender.cpp 27</p> <p>Error 21 error C2061: syntax error : identifier 'timer_' c:\Documents and Settings\GG\Desktop\sender.cpp 28</p> <p>Error 22 error C2143: syntax error : missing ')' before '{' c:\Documents and Settings\GG\Desktop\sender.cpp 30</p> <p>Error 23 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\Documents and Settings\GG\Desktop\sender.cpp 30</p> <p>Error 24 error C2143: syntax error : missing ';' before '{' c:\Documents and Settings\GG\Desktop\sender.cpp 39</p> <p>Error 25 error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\Documents and Settings\GG\Desktop\sender.cpp 39</p> <p>Error 26 fatal error C1004: unexpected end-of-file found c:\Documents and Settings\GG\Desktop\sender.cpp 100</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload