进行了下优化。OmronParent中在new MyClient 时,设置端口号之前我是固定了。现在把它也开放出来。
首先对MyClient类,进行一个小小的升级:添加发送和接收字节数组
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net