vb 实现WINSOCK1连接问题
PrivateSubForm_Load()Winsock1.LocalPort=8888Winsock1.ListenEndSubPrivateSubWinsock1_C...
Private Sub Form_Load()
Winsock1.LocalPort = 8888
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Accept requestID
Label1.Caption = "ok"
End Sub
端口此时没打开。略去了winsock1.close还是出现错误了
Private Sub Command1_Click()
Winsock1.Connect
End Sub
Private Sub Form_Load()
Winsock1.RemoteHost = "127.0.0.1"
Winsock1.RemotePort = 8888
End Sub
要如何解决呢 展开
Winsock1.LocalPort = 8888
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Accept requestID
Label1.Caption = "ok"
End Sub
端口此时没打开。略去了winsock1.close还是出现错误了
Private Sub Command1_Click()
Winsock1.Connect
End Sub
Private Sub Form_Load()
Winsock1.RemoteHost = "127.0.0.1"
Winsock1.RemotePort = 8888
End Sub
要如何解决呢 展开
2个回答
展开全部
Private Sub Form_Load()
Winsock1.LocalPort = 8888
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Close
Winsock1.Accept requestID
Label1.Caption = "ok"
End Sub
端口此时没打开。略去了winsock1.close还是出现错误了
Private Sub Command1_Click()
Winsock1.Connect
End Sub
Private Sub Form_Load()
Winsock1.RemoteHost = "127.0.0.1"
Winsock1.RemotePort = 8888
End Sub
Winsock1.LocalPort = 8888
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Close
Winsock1.Accept requestID
Label1.Caption = "ok"
End Sub
端口此时没打开。略去了winsock1.close还是出现错误了
Private Sub Command1_Click()
Winsock1.Connect
End Sub
Private Sub Form_Load()
Winsock1.RemoteHost = "127.0.0.1"
Winsock1.RemotePort = 8888
End Sub
威孚半导体技术
2024-08-19 广告
2024-08-19 广告
威孚(苏州)半导体技术有限公司是一家专注生产、研发、销售晶圆传输设备整机模块(EFEM/SORTER)及核心零部件的高科技半导体公司。公司核心团队均拥有多年半导体行业从业经验,其中技术团队成员博士、硕士学历占比80%以上,依托丰富的软件底层...
点击进入详情页
本回答由威孚半导体技术提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询