PageRenderTime 18ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/src/boost_1_50_0/doc/html/boost_asio/reference/basic_datagram_socket/send/overload2.html

https://bitbucket.org/johnny_lai/labvvis
HTML | 104 lines | 104 code | 0 blank | 0 comment | 0 complexity | 7ec23d47f1d74d5428293685e8c4985d MD5 | raw file
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>basic_datagram_socket::send (2 of 3 overloads)</title>
  5. <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
  7. <link rel="home" href="../../../../boost_asio.html" title="Boost.Asio">
  8. <link rel="up" href="../send.html" title="basic_datagram_socket::send">
  9. <link rel="prev" href="overload1.html" title="basic_datagram_socket::send (1 of 3 overloads)">
  10. <link rel="next" href="overload3.html" title="basic_datagram_socket::send (3 of 3 overloads)">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../send.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h5 class="title">
  27. <a name="boost_asio.reference.basic_datagram_socket.send.overload2"></a><a class="link" href="overload2.html" title="basic_datagram_socket::send (2 of 3 overloads)">basic_datagram_socket::send
  28. (2 of 3 overloads)</a>
  29. </h5></div></div></div>
  30. <p>
  31. Send some data on a connected socket.
  32. </p>
  33. <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
  34. <span class="keyword">typename</span> <a class="link" href="../../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span>
  35. <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">send</span><span class="special">(</span>
  36. <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span>
  37. <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">);</span>
  38. </pre>
  39. <p>
  40. This function is used to send data on the datagram socket. The function
  41. call will block until the data has been sent successfully or an error
  42. occurs.
  43. </p>
  44. <h6>
  45. <a name="boost_asio.reference.basic_datagram_socket.send.overload2.h0"></a>
  46. <span><a name="boost_asio.reference.basic_datagram_socket.send.overload2.parameters"></a></span><a class="link" href="overload2.html#boost_asio.reference.basic_datagram_socket.send.overload2.parameters">Parameters</a>
  47. </h6>
  48. <div class="variablelist">
  49. <p class="title"><b></b></p>
  50. <dl>
  51. <dt><span class="term">buffers</span></dt>
  52. <dd><p>
  53. One ore more data buffers to be sent on the socket.
  54. </p></dd>
  55. <dt><span class="term">flags</span></dt>
  56. <dd><p>
  57. Flags specifying how the send call is to be made.
  58. </p></dd>
  59. </dl>
  60. </div>
  61. <h6>
  62. <a name="boost_asio.reference.basic_datagram_socket.send.overload2.h1"></a>
  63. <span><a name="boost_asio.reference.basic_datagram_socket.send.overload2.return_value"></a></span><a class="link" href="overload2.html#boost_asio.reference.basic_datagram_socket.send.overload2.return_value">Return
  64. Value</a>
  65. </h6>
  66. <p>
  67. The number of bytes sent.
  68. </p>
  69. <h6>
  70. <a name="boost_asio.reference.basic_datagram_socket.send.overload2.h2"></a>
  71. <span><a name="boost_asio.reference.basic_datagram_socket.send.overload2.exceptions"></a></span><a class="link" href="overload2.html#boost_asio.reference.basic_datagram_socket.send.overload2.exceptions">Exceptions</a>
  72. </h6>
  73. <div class="variablelist">
  74. <p class="title"><b></b></p>
  75. <dl>
  76. <dt><span class="term">boost::system::system_error</span></dt>
  77. <dd><p>
  78. Thrown on failure.
  79. </p></dd>
  80. </dl>
  81. </div>
  82. <h6>
  83. <a name="boost_asio.reference.basic_datagram_socket.send.overload2.h3"></a>
  84. <span><a name="boost_asio.reference.basic_datagram_socket.send.overload2.remarks"></a></span><a class="link" href="overload2.html#boost_asio.reference.basic_datagram_socket.send.overload2.remarks">Remarks</a>
  85. </h6>
  86. <p>
  87. The send operation can only be used with a connected socket. Use the
  88. send_to function to send data on an unconnected datagram socket.
  89. </p>
  90. </div>
  91. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  92. <td align="left"></td>
  93. <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2012 Christopher M. Kohlhoff<p>
  94. Distributed under the Boost Software License, Version 1.0. (See accompanying
  95. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  96. </p>
  97. </div></td>
  98. </tr></table>
  99. <hr>
  100. <div class="spirit-nav">
  101. <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../send.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  102. </div>
  103. </body>
  104. </html>