2011-08-17 27 views

cevap

11

Bir süredir aradım ve sonunda Boost'un kaynak kodunu incelemeye çalıştım. Ben socket_base.hpp bunu buldum: message_peek, message_out_of_band ve message_do_not_route Olası değerler şunlardır gibi Buna dayanarak

/// Bitmask type for flags that can be passed to send and receive operations. 
    typedef int message_flags; 

#if defined(GENERATING_DOCUMENTATION) 
    /// Peek at incoming data without removing it from the input queue. 
    static const int message_peek = implementation_defined; 

    /// Process out-of-band data. 
    static const int message_out_of_band = implementation_defined; 

    /// Specify that the data should not be subject to routing. 
    static const int message_do_not_route = implementation_defined; 
#else 
    BOOST_STATIC_CONSTANT(int, 
     message_peek = boost::asio::detail::message_peek); 
    BOOST_STATIC_CONSTANT(int, 
     message_out_of_band = boost::asio::detail::message_out_of_band); 
    BOOST_STATIC_CONSTANT(int, 
     message_do_not_route = boost::asio::detail::message_do_not_route); 
#endif 

görünüyor. Bunları denemeye çalışıp çalışamayacağımı göreceğim.

0

(aşırı yük istisna kullanır ve ec param almak doesnt) bildirmekte hata kodu hata istiyorsanız cant kullanmak olmasıdır. Örneğin, Windows'da doğrudan WSASend'e yönlendirilir. Paramın anlamı, Windows dokümanlarında WSASend, aksi takdirde Windows için recvmsg olarak işaretlenmelidir.