天下一家·MJ

博客园 首页 新随笔 联系 订阅 管理
Option Explicit

Private WithEvents k As vbRichClient5.cWebServer

Private Sub Command1_Click()
  Set k = New cWebServer
  k.Listen "localhost", "127.0.0.1", 8891
End Sub

Private Sub k_ConnAccepted(hSocket As Long, ClientIPAndPort As String)
  Debug.Print hSocket
End Sub

Private Sub k_ProcessRequest(Request As vbRichClient5.cWebRequest)
  Request.Response.SetResponseDataString "hello,world"
End Sub

 

posted on 2016-06-03 22:48  天下一家·MJ  阅读(1482)  评论(0编辑  收藏  举报
友情链接Tkin的技术博客