⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opt.htm

📁 udt的一个源代码
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<html><head><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>UDT Reference</title></head><body><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber1" bgcolor="#99CCFF" bordercolor="#99CCFF">  <tr>    <td width="100%"><font face="Verdana" size="2"><i>&nbsp;UDT Reference: UDT 	Functions</i></font></td>  </tr></table><h1 style="margin-bottom: 0"><font face="Verdana" size="4">getsockopt</font></h1><h1 style="margin-top: 0"><font face="Verdana" size="4">setsockopt</font></h1><p><font face="Verdana" size="2">The <b>getsockopt </b>and<b> setsockopt</b> methods read and set up UDT options, respectively.</font></p><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber2" bgcolor="#C0C0C0" bordercolor="#C0C0C0">  <tr>    <td width="100%">    <p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">int getsockopt(</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; UDTSOCKET <font color="#FFFFFF">u</font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; int <font color="#FFFFFF"> <a class="synParam" onclick="showTip(this)">level</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; SOCKOPT <font color="#FFFFFF"> <a class="synParam" onclick="showTip(this)">optname</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; char *<font color="#FFFFFF"><a class="synParam" onclick="showTip(this)">optval</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; int *<font color="#FFFFFF"><a class="synParam" onclick="showTip(this)">optlen</a></font></font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">);</font></p>	<p style="margin-top: 0; margin-bottom: 0">    &nbsp;</p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">int setsockopt(</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; UDTSOCKET <font color="#FFFFFF">u</font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; int <font color="#FFFFFF"> <a class="synParam" onclick="showTip(this)">level</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; SOCKOPT <font color="#FFFFFF"> <a class="synParam" onclick="showTip(this)">optname</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; const char *<font color="#FFFFFF"><a class="synParam" onclick="showTip(this)">optval</a></font>,</font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">&nbsp; int <font color="#FFFFFF"> <a class="synParam" onclick="showTip(this)">optlen</a></font></font></p>	<p style="margin-top: 0; margin-bottom: 0">    <font face="Courier New" size="1">);</font></p>    </td>  </tr></table><h4><font face="Verdana" size="2">Parameters</font></h4><dl>	<dt><i><font face="Verdana" size="2">u</font></i></dt>	<dd><font face="Verdana" size="2">[in] Descriptor identifying an listening 	socket. </font></dd>	<dt><i><font face="Verdana" size="2">level</font></i></dt>	<dd><font face="Verdana" size="2">[in] Ignored. For compatibility use only. </font></dd>	<dt><i><font face="Verdana" size="2">optName</font></i></dt>	<dd><font face="Verdana" size="2">[in] The <font color="#008000">enum</font>   name of UDT option. The names and meanings are listed in the table below:</font></dd>	<dt>&nbsp;</dt>	<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" bordercolordark="#C0C0C0" bordercolorlight="#C0C0C0" width="100%">		<tr>			<th align="center" bgcolor="#C0C0C0" width="133"><b>			<font face="Verdana" size="2">Name</font></b></th>			<th align="center" bgcolor="#C0C0C0" width="133"><b>			<font face="Verdana" size="2">Type</font></b></th>			<th align="center" bgcolor="#C0C0C0" width="323"><b>			<font face="Verdana" size="2">Meaning</font></b></th>			<th align="center" bgcolor="#C0C0C0" width="812"><b>			<font face="Verdana" size="2">Comment</font></b></th>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font size="1" face="Verdana">UDT_MSS</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">int</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">maximum packet size (bytes)</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">default value is <font color="#008000">1500.</font></font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT_SNDSYN</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">bool</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Blocking mode of the data sending</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1"><font color="#008000">true</font>: blocking sending; 			<font color="#008000">false</font>: non-blocking sending. Default value is 			<font color="#008000">true</font>.</font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT_RCVSYN</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">bool</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Blocking mode of the data receiving&nbsp; 			</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1"><font color="#008000">true</font>: blocking receiving;      		<font color="#008000">false</font>: non-blocking receiving. Default value       is <font color="#008000">true</font>.</font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT_CC</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">CCCFactory*</font><p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">CCC**</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Congestion control algorithm option</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1"><i>optval</i> is a pointer to a CCC 			Factory class. (for setsockopt)</font><p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1"><i>optval</i> is a pointer of pointer 			to a CCC class instance. (for getsockopt)</font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT_FC</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">int</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Maximum flow window size</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Default value is <font color="#008000">25600</font>.</font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT_SNDBUF</font></td>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">int</font></td>			<td width="323">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">UDT sending buffer size limit</font></td>			<td width="812">			<p style="margin-top: 1; margin-bottom: 1">			<font face="Verdana" size="1">Default value is <font color="#008000">40960000</font> bytes.</font></td>		</tr>		<tr>			<td width="133">			<p style="margin-top: 1; margin-bottom: 1">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -