VB_soket_TCPIP.rar VB,亲测可用1)AddCSocketMaster.clsandmodSocketMaster.bastoyourproject. 2)InaForm,ClassorUserControladdthislineinthedeclarationareaforeachsocketyouwanttouse
vb_TCPIP_demo.zip '连接成功 PrivateSubsock_Connect() 'MsgBox("socketconnected") Shape.BackColor=vbGreen Command1.Caption="发送" Label1.Caption=Sock.LocalIP&":"&Sock.LocalPort