亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? socket.ctl

?? 本程序可以設置本機自動與Internet時間同步。
?? CTL
字號:
VERSION 5.00
Begin VB.UserControl Socket 
   CanGetFocus     =   0   'False
   ClientHeight    =   765
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   945
   InvisibleAtRuntime=   -1  'True
   ScaleHeight     =   51
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   63
End
Attribute VB_Name = "Socket"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
''''''''''''''''''''''''''''''''''''''''''''Winsock Control控件代碼'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'描述:Winsock Control代碼
'作者:來源于網(wǎng)絡
'修改者:水木之(QQ:344177293)
'版本號:1.02(03/02/07)
'日期:2007年3月2日.
'描敘:在原代碼中增加了對中文的支持,
'     現(xiàn)在我們終于有了拋棄微軟Winsock控件的能力了^_^,
'     這個工程編譯后是個ocx控件,
'     如果給其他程序用的話還是要帶上這個文件,還是不是很方便.
'
'
'
'     要是你想讓自己的程序完全獨立運行,請在VB工程里手工添加modSocketMaster.bas、CSocketMaster.cls、Socket.ctl
'     這三個文件,然后把Socket.ctl這個控件由工具箱“拖到”窗體上即可,現(xiàn)在,你就
'     完全可以把它當作微軟Winsock控件來使用了,并且可以讓你的程序獨立運行!
'
'     如果有疑問可以加我QQ,或者聯(lián)系xiejienet@126.com
'     轉(zhuǎn)載時請保留以上的信息,謝謝合作
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''



Option Explicit

'Don't forget to change CSocketMaster class
'instancing property to PublicNotCreatable

'These are the same events CSocketMaster has
Public Event CloseSck()
Public Event Connect()
Public Event ConnectionRequest(ByVal requestID As Long)
Attribute ConnectionRequest.VB_Description = "Occurs when a remote client is attempting to connect"
Public Event DataArrival(ByVal bytesTotal As Long)
Attribute DataArrival.VB_Description = "Occurs when data has been received from the remote computer"
Attribute DataArrival.VB_MemberFlags = "200"
Public Event Error(ByVal Number As Integer, Description As String, ByVal sCode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Attribute Error.VB_Description = "Error occurred"
Public Event SendComplete()
Attribute SendComplete.VB_Description = "Occurs after a send operation has completed"
Public Event SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)
Attribute SendProgress.VB_Description = "Occurs during process of sending data"

'Our socket
Private WithEvents cmSocket As CSocketMaster
Attribute cmSocket.VB_VarHelpID = -1

Private Sub UserControl_Initialize()
'create an instance of CSocketMaster
Set cmSocket = New CSocketMaster
End Sub

Private Sub UserControl_Terminate()
'destroy instance of CSocketMaster
Set cmSocket = Nothing
End Sub

Private Sub UserControl_Resize()
'this is used to lock control size
UserControl.Width = 420
UserControl.Height = 420
End Sub


'Control properties. Every time the control is built
'the class instance cmSocket is reset, and so the
'control properties. We use these variables to make
'control properties persistent.
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Me.LocalPort = PropBag.ReadProperty("LocalPort", 0)
Me.Protocol = PropBag.ReadProperty("Protocol", 0)
Me.RemoteHost = PropBag.ReadProperty("RemoteHost", "")
Me.RemotePort = PropBag.ReadProperty("RemotePort", 0)
Me.Tag = PropBag.ReadProperty("Tag", "")
End Sub

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
PropBag.WriteProperty "LocalPort", Me.LocalPort, 0
PropBag.WriteProperty "Protocol", Me.Protocol, 0
PropBag.WriteProperty "RemoteHost", Me.RemoteHost, ""
PropBag.WriteProperty "RemotePort", Me.RemotePort, 0
PropBag.WriteProperty "Tag", Me.Tag, ""
End Sub

'From this point we declare all the 'bridge' function
'and properties. The idea is very simple, when user
'call a function we call cmSocket function, when
'cmSocket raises an event we raise an event, when user
'set a property we set cmSocket property, when user
'retrieves a property we retrieve cmSocket property
'and pass the result to user.
'Easy, isn't it?

Private Sub cmSocket_CloseSck()
RaiseEvent CloseSck
End Sub

Private Sub cmSocket_Connect()
RaiseEvent Connect
End Sub

Private Sub cmSocket_ConnectionRequest(ByVal requestID As Long)
RaiseEvent ConnectionRequest(requestID)
End Sub

Private Sub cmSocket_DataArrival(ByVal bytesTotal As Long)
RaiseEvent DataArrival(bytesTotal)
End Sub

Private Sub cmSocket_Error(ByVal Number As Integer, Description As String, ByVal sCode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
RaiseEvent Error(Number, Description, sCode, Source, HelpFile, HelpContext, CancelDisplay)
End Sub

Private Sub cmSocket_SendComplete()
RaiseEvent SendComplete
End Sub

Private Sub cmSocket_SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)
RaiseEvent SendProgress(bytesSent, bytesRemaining)
End Sub

Public Property Get RemotePort() As Long
Attribute RemotePort.VB_Description = "Returns/Sets the port to be connected to on the remote computer"
RemotePort = cmSocket.RemotePort
End Property

Public Property Let RemotePort(ByVal lngPort As Long)
cmSocket.RemotePort = lngPort
End Property

Public Property Get RemoteHost() As String
Attribute RemoteHost.VB_Description = "Returns/Sets the name used to identify the remote computer"
RemoteHost = cmSocket.RemoteHost
End Property

Public Property Let RemoteHost(ByVal strHost As String)
cmSocket.RemoteHost = strHost
End Property

Public Property Get RemoteHostIP() As String
Attribute RemoteHostIP.VB_Description = "Returns the remote host IP address"
RemoteHostIP = cmSocket.RemoteHostIP
End Property

Public Property Get LocalPort() As Long
Attribute LocalPort.VB_Description = "Returns/Sets the port used on the local computer"
LocalPort = cmSocket.LocalPort
End Property

Public Property Let LocalPort(ByVal lngPort As Long)
cmSocket.LocalPort = lngPort
End Property

Public Property Get State() As SockState
Attribute State.VB_Description = "Returns the state of the socket connection"
State = cmSocket.State
End Property

Public Property Get LocalHostName() As String
Attribute LocalHostName.VB_Description = "Returns the local machine name"
LocalHostName = cmSocket.LocalHostName
End Property

Public Property Get LocalIP() As String
Attribute LocalIP.VB_Description = "Returns the local machine IP address"
LocalIP = cmSocket.LocalIP
End Property

Public Property Get BytesReceived() As Long
Attribute BytesReceived.VB_Description = "Returns the number of bytes received on this connection"
BytesReceived = cmSocket.BytesReceived
End Property

Public Property Get SocketHandle() As Long
Attribute SocketHandle.VB_Description = "Returns the socket handle"
SocketHandle = cmSocket.SocketHandle
End Property

Public Property Get Tag() As String
Attribute Tag.VB_Description = "Returns or sets an expression that stores any extra data needed for your program"
Tag = cmSocket.Tag
End Property

Public Property Let Tag(ByVal strTag As String)
cmSocket.Tag = strTag
End Property

Public Property Get Protocol() As ProtocolConstants
Attribute Protocol.VB_Description = "Returns/Sets the socket protocol"
Protocol = cmSocket.Protocol
End Property

Public Property Let Protocol(ByVal enmProtocol As ProtocolConstants)
cmSocket.Protocol = enmProtocol
End Property

Public Sub Accept(requestID As Long)
Attribute Accept.VB_Description = "Accept an incoming connection request"
cmSocket.Accept requestID
End Sub

Public Sub Bind(Optional LocalPort As Variant, Optional LocalIP As Variant)
Attribute Bind.VB_Description = "Binds socket to specific port and adapter"
cmSocket.Bind LocalPort, LocalIP
End Sub

Public Sub CloseSck()
Attribute CloseSck.VB_Description = "Close current connection"
cmSocket.CloseSck
End Sub

Public Sub Connect(Optional RemoteHost As Variant, Optional RemotePort As Variant)
Attribute Connect.VB_Description = "Connect to the remote computer"
cmSocket.Connect RemoteHost, RemotePort
End Sub

Public Sub GetData(ByRef data As Variant, Optional varType As Variant, Optional maxLen As Variant)
Attribute GetData.VB_Description = "Retrieve data sent by the remote computer"
cmSocket.GetData data, varType, maxLen
End Sub

Public Sub Listen()
Attribute Listen.VB_Description = "Listen for incoming connection requests"
cmSocket.Listen
End Sub

Public Sub PeekData(ByRef data As Variant, Optional varType As Variant, Optional maxLen As Variant)
Attribute PeekData.VB_Description = "Look at incoming data without removing it from the buffer"
cmSocket.PeekData data, varType, maxLen
End Sub

Public Sub SendData(data As Variant)
Attribute SendData.VB_Description = "Send data to remote computer"
cmSocket.SendData data
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一二二区| 92精品国产成人观看免费 | 国产91丝袜在线18| 在线免费一区三区| 欧美不卡在线视频| 亚洲一区二区三区四区在线观看| 激情欧美日韩一区二区| 欧美主播一区二区三区美女| 国产欧美一区二区三区沐欲| 麻豆一区二区99久久久久| 91国偷自产一区二区三区成为亚洲经典| 91 com成人网| 亚洲一区中文在线| 91网上在线视频| 久久久久久黄色| 久久福利资源站| 91精品久久久久久久99蜜桃| 一区二区三区中文字幕电影 | 欧美xxxx在线观看| 亚洲精品成人天堂一二三| 国产在线播放一区二区三区| 欧美日本在线观看| 亚洲国产一区在线观看| 色综合久久综合网97色综合| 欧美电影免费观看高清完整版在线观看| 亚洲在线中文字幕| 欧美探花视频资源| 亚洲一区av在线| 91福利在线看| 亚洲资源中文字幕| 欧美日韩一区成人| 图片区日韩欧美亚洲| 欧美三级中文字| 亚洲最大成人综合| 欧美人狂配大交3d怪物一区| 亚洲自拍与偷拍| 欧美日韩国产美女| 免费看精品久久片| 日韩你懂的电影在线观看| 裸体歌舞表演一区二区| 欧美不卡123| 国产91在线看| 亚洲欧美一区二区久久| 91电影在线观看| 视频精品一区二区| 日韩欧美一级二级三级| 国产麻豆视频精品| 国产精品视频第一区| 91亚洲资源网| 首页亚洲欧美制服丝腿| 日韩美女一区二区三区| 国产成人在线免费| √…a在线天堂一区| 欧美性受xxxx| 欧美a级理论片| 欧美激情在线一区二区| 欧美中文一区二区三区| 激情久久五月天| 中文字幕乱码亚洲精品一区| 欧洲精品中文字幕| 日韩高清不卡一区二区| 中文字幕乱码久久午夜不卡| 在线影院国内精品| 蜜桃av一区二区三区| 国产欧美日韩三区| 欧美中文字幕一区二区三区亚洲| 日本不卡在线视频| 国产精品理论在线观看| 欧美久久一二三四区| 国产福利一区在线观看| 一区二区三区国产豹纹内裤在线| 欧美一级国产精品| av电影在线观看一区| 日韩电影免费在线| 一区精品在线播放| 91精品免费在线| 色偷偷88欧美精品久久久| 奇米精品一区二区三区在线观看一| 国产精品美女久久久久久久久久久| 欧美日韩免费在线视频| 国产成人欧美日韩在线电影| 调教+趴+乳夹+国产+精品| 国产欧美精品在线观看| 欧美一区二区三区在线观看| 国产v综合v亚洲欧| 麻豆免费看一区二区三区| 亚洲美女屁股眼交| 久久综合狠狠综合久久综合88| 欧美在线一区二区三区| 丁香婷婷综合五月| 日本欧美一区二区在线观看| 亚洲精品久久久蜜桃| 国产欧美日本一区二区三区| 精品国产99国产精品| 欧美疯狂性受xxxxx喷水图片| 成a人片亚洲日本久久| 韩国中文字幕2020精品| 亚洲成人久久影院| 亚洲精品国产一区二区精华液| 国产日韩欧美不卡| 久久久久国产精品人| 日韩欧美资源站| 欧美一级欧美三级在线观看| 欧美午夜不卡在线观看免费| 成人av网站在线| 丁香激情综合五月| 国产一区二区三区免费在线观看| 日产欧产美韩系列久久99| 午夜电影网亚洲视频| 亚洲一级片在线观看| 亚洲精品老司机| 亚洲国产日韩综合久久精品| 亚洲综合一区二区三区| 一区二区三区视频在线看| 亚洲精品你懂的| 亚洲bt欧美bt精品777| 亚洲国产成人av网| 亚洲福利视频导航| 午夜av电影一区| 男女视频一区二区| 久久精品国产亚洲a| 久久国产综合精品| 国产综合色视频| 国产一区二区美女诱惑| 国产精品一区二区黑丝| av一二三不卡影片| 欧洲人成人精品| 日韩视频在线一区二区| 精品久久久久久久人人人人传媒 | 欧美96一区二区免费视频| 蜜臀av国产精品久久久久| 精品影院一区二区久久久| 精品在线你懂的| www.在线欧美| 欧美亚洲国产bt| 精品成人私密视频| 国产精品视频在线看| 亚洲一区二区三区在线| 欧美aⅴ一区二区三区视频| 国产在线播放一区| 色婷婷av一区二区三区大白胸| 欧美日韩国产经典色站一区二区三区| 欧美精品在线一区二区| 久久影院午夜论| 亚洲精品日产精品乱码不卡| 日本在线不卡一区| 国产+成+人+亚洲欧洲自线| 日本高清成人免费播放| 日韩免费一区二区| 日韩美女啊v在线免费观看| 日韩精品成人一区二区在线| 国产一区二区美女诱惑| 欧美无乱码久久久免费午夜一区 | 中文字幕一区二区三区色视频 | 51午夜精品国产| 国产欧美综合在线| 天天色天天操综合| 国产成人av自拍| 欧美日韩国产天堂| 国产精品无人区| 蜜臀av在线播放一区二区三区| av成人老司机| 久久在线观看免费| 亚洲国产综合人成综合网站| 国产成人免费高清| 91麻豆精品国产91久久久使用方法 | 狠狠久久亚洲欧美| 91久久精品一区二区| 亚洲国产精品传媒在线观看| 爽好久久久欧美精品| 91福利资源站| 亚洲少妇屁股交4| 国产精品一区免费在线观看| 欧美久久婷婷综合色| 樱桃国产成人精品视频| 国产电影一区在线| 久久在线观看免费| 久久av资源网| 6080国产精品一区二区| 亚洲一区二区五区| 日本电影欧美片| 亚洲色图制服诱惑| aaa欧美大片| 国产精品欧美久久久久无广告| 精品一区二区免费看| 欧美一区二区视频免费观看| 亚洲成人动漫在线观看| 在线免费视频一区二区| 亚洲欧美日韩久久| 99久久国产综合色|国产精品| 久久综合色鬼综合色| 久久精品国产99国产| 欧美一区二区三区在线| 日韩av一区二区三区| 欧美日韩免费视频| 偷拍一区二区三区| 69av一区二区三区| 日韩1区2区日韩1区2区| 5月丁香婷婷综合| 美美哒免费高清在线观看视频一区二区 |