 2 overloads)</a>
</h5></div></div></div>
<p>
            <span class="emphasis"><em>Inherited from basic_socket.</em></span>
          </p>
<p>
            Assign an existing native socket to the socket.
          </p>
<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">assign</span><span class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">protocol_type</span> <span class="special">&amp;</span> <span class="identifier">protocol</span><