>
<p>
          <a class="indexterm" name="idp38227232"></a> 
Assign an existing native socket to the socket.
        </p>
<pre class="programlisting"><span class="keyword">void</span> <a class="link" href="assign/overload1.html" title="basic_seq_packet_socket::assign (1 of 2 overloads)">assign</a><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><span class="special">