- 日志
- 好友
- 卖家信用
- 买家信用
- 注册时间
- 2022-3-7
- 在线时间
- 小时
|
发表于 2022-9-12 23:48:24
|
显示全部楼层
void Start () {
IPEndPoint i = new IPEndPoint(IPAddress.Parse(ip), port); client = new TcpClient(i); client.Connect(ip,8088);
stream =client.GetStream(); string msg = "hahaha";
byte[] bytes = Encoding.UTF8.GetBytes(msg); stream.Write(bytes, 0, bytes.Length); |
|