摘要: 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static vo 阅读全文
posted @ 2025-08-31 14:12 双Mz 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static vo 阅读全文
posted @ 2025-08-30 14:09 双Mz 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public struct Person { pu 阅读全文
posted @ 2025-08-30 13:54 双Mz 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public enum Gender { 男, 女 阅读全文
posted @ 2025-08-30 09:47 双Mz 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static vo 阅读全文
posted @ 2025-08-30 09:32 双Mz 阅读(2) 评论(0) 推荐(0)
摘要: 1、建立一个套接字 2、 绑定本机的IP和端口 3、 如果是TCP,因为是面向连接的,所以要利用ListenO()方法来监听网络上是否有人给自己发东西;如果是UDP,因为是无连接的,所以来者不拒。 4、TCP情况下,如果监听到一个连接,就可以使用accept来接收这个连接,然后就可以利用Send/R 阅读全文
posted @ 2025-08-29 16:11 双Mz 阅读(2) 评论(0) 推荐(0)