Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ private async Task CreateClient()
<li><code>FixLengthDataPackageHandler</code> <b>固定长度数据处理器</b> 即每个通讯包都是固定长度</li>
<li><code>DelimiterDataPackageHandler</code> <b>分隔符数据处理器</b> 即通讯包以特定一个或一组字节分割</li>
</ul>

<p class="code-label">5. 数据适配器(设计中)</p>

<p>在我们实际应用中,接收到数据包后(已经过数据处理器)大多情况下是需要将电文转化为应用中的具体数据类型 <code>Class</code> 或 <code>Struct</code>。将原始数据包转化为类或者结构体的过程由我们的数据适配器来实现</p>

<p>数据适配器设计思路如下</p>
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,7 @@ void AddServices(DemoMenuItem item)
},
new()
{
IsNew = true,
Text = Localizer["TcpSocketFactory"],
Url = "socket-factory"
},
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4952,7 +4952,7 @@
"CardUpload": "卡片上传组件 CardUpload",
"DropUpload": "拖动上传组件 DropUpload",
"Vditor": "富文本框 Vditor Markdown",
"TcpSocketFactory": "TCP Socket 套接字服务 ITcpSocketFactory"
"TcpSocketFactory": "套接字服务 ITcpSocketFactory"
},
"BootstrapBlazor.Server.Components.Samples.Table.TablesHeader": {
"TablesHeaderTitle": "表头分组功能",
Expand Down