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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? modsocketmaster.bas

?? I implemented a perfect file transfer OCX client/server. I created a perfect function to parse and s
?? BAS
?? 第 1 頁 / 共 2 頁
字號:
    lngResult = InitiateService
    
    If lngResult = 0 Then
        Debug.Print "OK Winsock service initiated"
    Else
        Debug.Print "ERROR trying to initiate winsock service"
        Err.Raise lngResult, "modSocketMaster.InitiateProcesses", GetErrorDescription(lngResult)
        InitiateProcesses = lngResult
    End If
    
End If
End Function

'This function initiate the winsock service calling
'the api_WSAStartup funtion and returns resulting value.
Private Function InitiateService() As Long
Dim udtWSAData As WSAData
Dim lngResult As Long

lngResult = api_WSAStartup(SOCKET_VERSION_11, udtWSAData)
InitiateService = lngResult
End Function

'Once we are done with the class instance we call this
'function to discount it and finish winsock service if
'it was the last one.
'Returns 0 if it has success.
Public Function FinalizeProcesses() As Long
FinalizeProcesses = 0
m_lngSocksQuantity = m_lngSocksQuantity - 1

'if the service was initiated and there's no more instances
'of the class then we finish the service
If m_blnInitiated And m_lngSocksQuantity = 0 Then
    If FinalizeService = SOCKET_ERROR Then
        Dim lngErrorCode As Long
        lngErrorCode = Err.LastDllError
        FinalizeProcesses = lngErrorCode
        Err.Raise lngErrorCode, "modSocketMaster.FinalizeProcesses", GetErrorDescription(lngErrorCode)
    Else
        Debug.Print "OK Winsock service finalized"
    End If
    
    Subclass_Terminate
    m_blnInitiated = False
End If

End Function

'Finish winsock service calling the function
'api_WSACleanup and returns the result.
Private Function FinalizeService() As Long
Dim lngResultado As Long
lngResultado = api_WSACleanup
FinalizeService = lngResultado
End Function

'This function receives a number that represents an error
'and returns the corresponding description string.
Public Function GetErrorDescription(ByVal lngErrorCode As Long) As String
Select Case lngErrorCode
    Case WSAEACCES
        GetErrorDescription = "Permission denied."
    Case WSAEADDRINUSE
        GetErrorDescription = "Address already in use."
    Case WSAEADDRNOTAVAIL
        GetErrorDescription = "Cannot assign requested address."
    Case WSAEAFNOSUPPORT
        GetErrorDescription = "Address family not supported by protocol family."
    Case WSAEALREADY
        GetErrorDescription = "Operation already in progress."
    Case WSAECONNABORTED
        GetErrorDescription = "Software caused connection abort."
    Case WSAECONNREFUSED
        GetErrorDescription = "Connection refused."
    Case WSAECONNRESET
        GetErrorDescription = "Connection reset by peer."
    Case WSAEDESTADDRREQ
        GetErrorDescription = "Destination address required."
    Case WSAEFAULT
        GetErrorDescription = "Bad address."
    Case WSAEHOSTUNREACH
        GetErrorDescription = "No route to host."
    Case WSAEINPROGRESS
        GetErrorDescription = "Operation now in progress."
    Case WSAEINTR
        GetErrorDescription = "Interrupted function call."
    Case WSAEINVAL
        GetErrorDescription = "Invalid argument."
    Case WSAEISCONN
        GetErrorDescription = "Socket is already connected."
    Case WSAEMFILE
        GetErrorDescription = "Too many open files."
    Case WSAEMSGSIZE
        GetErrorDescription = "Message too long."
    Case WSAENETDOWN
        GetErrorDescription = "Network is down."
    Case WSAENETRESET
        GetErrorDescription = "Network dropped connection on reset."
    Case WSAENETUNREACH
        GetErrorDescription = "Network is unreachable."
    Case WSAENOBUFS
        GetErrorDescription = "No buffer space available."
    Case WSAENOPROTOOPT
        GetErrorDescription = "Bad protocol option."
    Case WSAENOTCONN
        GetErrorDescription = "Socket is not connected."
    Case WSAENOTSOCK
        GetErrorDescription = "Socket operation on nonsocket."
    Case WSAEOPNOTSUPP
        GetErrorDescription = "Operation not supported."
    Case WSAEPFNOSUPPORT
        GetErrorDescription = "Protocol family not supported."
    Case WSAEPROCLIM
        GetErrorDescription = "Too many processes."
    Case WSAEPROTONOSUPPORT
        GetErrorDescription = "Protocol not supported."
    Case WSAEPROTOTYPE
        GetErrorDescription = "Protocol wrong type for socket."
    Case WSAESHUTDOWN
        GetErrorDescription = "Cannot send after socket shutdown."
    Case WSAESOCKTNOSUPPORT
        GetErrorDescription = "Socket type not supported."
    Case WSAETIMEDOUT
        GetErrorDescription = "Connection timed out."
    Case WSAEWOULDBLOCK
        GetErrorDescription = "Resource temporarily unavailable."
    Case WSAHOST_NOT_FOUND
        GetErrorDescription = "Host not found."
    Case WSANOTINITIALISED
        GetErrorDescription = "Successful WSAStartup not yet performed."
    Case WSANO_DATA
        GetErrorDescription = "Valid name, no data record of requested type."
    Case WSANO_RECOVERY
        GetErrorDescription = "This is a nonrecoverable error."
    Case WSASYSNOTREADY
        GetErrorDescription = "Network subsystem is unavailable."
    Case WSATRY_AGAIN
        GetErrorDescription = "Nonauthoritative host not found."
    Case WSAVERNOTSUPPORTED
        GetErrorDescription = "Winsock.dll version out of range."
    Case Else
        GetErrorDescription = "Unknown error."
End Select

End Function

'Create a window that is used to capture sockets messages.
'Returns 0 if it has success.
Private Function CreateWinsockMessageWindow() As Long
m_lngWindowHandle = api_CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&)

If m_lngWindowHandle = 0 Then
    CreateWinsockMessageWindow = sckOutOfMemory
    Exit Function
Else
    CreateWinsockMessageWindow = 0
    Debug.Print "OK Created winsock message window " & m_lngWindowHandle
End If
End Function

'Destroy the window that is used to capture sockets messages.
'Returns 0 if it has success.
Private Function DestroyWinsockMessageWindow() As Long
DestroyWinsockMessageWindow = 0

If m_lngWindowHandle = 0 Then
    Debug.Print "WARNING lngWindowHandle is ZERO"
    Exit Function
End If
    
Dim lngResult As Long

lngResult = api_DestroyWindow(m_lngWindowHandle)
    
If lngResult = 0 Then
    DestroyWinsockMessageWindow = sckOutOfMemory
    Err.Raise sckOutOfMemory, "modSocketMaster.DestroyWinsockMessageWindow", "Out of memory"
Else
    Debug.Print "OK Destroyed winsock message window " & m_lngWindowHandle
    m_lngWindowHandle = 0
End If
    
End Function

'When a socket needs to resolve a hostname in asynchronous way
'it calls this function. If it has success it returns a nonzero
'number that represents the async task handle and register this
'number in the TableA list.
'Returns 0 if it fails.
Public Function ResolveHost(ByVal strHost As String, ByVal lngHOSTENBuf As Long, ByVal lngObjectPointer As Long) As Long
Dim lngAsynHandle As Long
lngAsynHandle = api_WSAAsyncGetHostByName(m_lngWindowHandle, RESOLVE_MESSAGE, strHost, ByVal lngHOSTENBuf, MAXGETHOSTSTRUCT)
If lngAsynHandle <> 0 Then Subclass_AddResolveMessage lngAsynHandle, lngObjectPointer
ResolveHost = lngAsynHandle
End Function

'Returns the hi word from a double word.
Public Function HiWord(lngValue As Long) As Long
If (lngValue And &H80000000) = &H80000000 Then
    HiWord = ((lngValue And &H7FFF0000) \ &H10000) Or &H8000&
Else
    HiWord = (lngValue And &HFFFF0000) \ &H10000
End If
End Function

'Returns the low word from a double word.
Public Function LoWord(lngValue As Long) As Long
LoWord = (lngValue And &HFFFF&)
End Function

'Receives a string pointer and it turns it into a regular string.
Public Function StringFromPointer(ByVal lPointer As Long) As String
Dim strTemp As String
Dim lRetVal As Long

strTemp = String$(api_lstrlen(ByVal lPointer), 0)
lRetVal = api_lstrcpy(ByVal strTemp, ByVal lPointer)
If lRetVal Then StringFromPointer = strTemp
End Function

'The function takes an unsigned Integer from and API and

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品三级电影| 欧美一级生活片| 欧美一区二区三区公司| 久久久99久久精品欧美| 樱桃国产成人精品视频| 99久久99久久久精品齐齐| 欧美日韩视频不卡| 中文字幕亚洲欧美在线不卡| 日韩精品亚洲一区二区三区免费| 国产精品一区在线观看乱码| 欧美日韩午夜精品| 亚洲同性同志一二三专区| 理论电影国产精品| 欧美精品一级二级| 亚洲免费在线电影| 丰满少妇在线播放bd日韩电影| 日韩欧美亚洲国产另类| 亚洲综合偷拍欧美一区色| 成人午夜在线播放| 精品久久久久av影院| 日本在线不卡视频一二三区| 99国产精品久| 国产欧美日韩久久| 国产精品综合av一区二区国产馆| 欧美视频自拍偷拍| 国产91精品免费| 久久这里都是精品| 乱一区二区av| 欧美成人bangbros| 韩国女主播一区| 2020国产精品自拍| 国产乱码精品一区二区三区忘忧草| 欧美一区二区三区四区在线观看 | 亚洲最大色网站| 国产**成人网毛片九色| 久久综合狠狠综合| 粉嫩13p一区二区三区| 国产日韩精品久久久| 国产精品一区二区在线观看不卡 | 欧美日韩精品三区| 亚洲成人资源在线| 欧美一区二区三区在线看| 亚洲一区在线播放| 欧美性猛片xxxx免费看久爱| 丝袜美腿亚洲综合| 欧美高清你懂得| 丝袜诱惑亚洲看片| 欧美va亚洲va香蕉在线| 国产一区中文字幕| 国产精品你懂的在线| 一本大道综合伊人精品热热| 亚洲一卡二卡三卡四卡五卡| 欧美区视频在线观看| 精品亚洲porn| 中文字幕第一区第二区| 丰满少妇在线播放bd日韩电影| 色婷婷综合中文久久一本| 亚洲一级二级三级在线免费观看| 欧美日韩高清一区| 国产一区二区三区综合| 亚洲国产成人在线| 欧美午夜精品一区二区蜜桃 | 91美女片黄在线观看| 一区二区三区欧美久久| 欧美日韩一区二区三区在线| 黄色资源网久久资源365| 国产精品久久久久7777按摩| 在线一区二区视频| 精品一区二区综合| 亚洲男人天堂一区| 日韩欧美激情一区| 色狠狠桃花综合| 日韩电影免费在线看| 日韩精品一区二区三区视频| www.欧美.com| 另类的小说在线视频另类成人小视频在线 | 粉嫩蜜臀av国产精品网站| 亚洲国产欧美另类丝袜| 国产亚洲欧美日韩在线一区| 欧洲国产伦久久久久久久| 国产一二精品视频| 亚洲地区一二三色| 国产精品久久久久久久久免费桃花| 在线亚洲一区二区| 国产精品18久久久久久久久| 亚洲一区二区五区| 国产丝袜美腿一区二区三区| 色婷婷亚洲精品| 国产在线看一区| 亚洲尤物视频在线| 国产精品无圣光一区二区| 欧美r级在线观看| 欧美日韩dvd在线观看| 国产一区二区剧情av在线| 日韩一本二本av| 色狠狠av一区二区三区| 国产成人午夜片在线观看高清观看| 亚洲成a人v欧美综合天堂下载| 国产精品久久久久永久免费观看| 精品伦理精品一区| 日韩午夜激情免费电影| 欧美日韩精品二区第二页| 91网址在线看| 99re这里只有精品6| 国产麻豆视频精品| 开心九九激情九九欧美日韩精美视频电影| 亚洲六月丁香色婷婷综合久久 | 久久99精品网久久| 亚洲不卡在线观看| 中文字幕免费观看一区| 日韩一区二区三区免费看 | 99久久精品一区| 国产精品一区在线观看你懂的| 日韩高清在线不卡| 亚洲国产精品自拍| 亚洲一区二区三区精品在线| 中文字幕一区二区三区蜜月| 欧美国产一区视频在线观看| 亚洲图片欧美激情| 中文字幕一区二区三区在线不卡 | av午夜一区麻豆| 风流少妇一区二区| 成人丝袜18视频在线观看| 国产精品一区二区不卡| 国产乱码字幕精品高清av| 国产伦精品一区二区三区免费 | 亚洲影院理伦片| 一区二区三区**美女毛片| 亚洲一区二区三区美女| 视频一区二区中文字幕| 日产精品久久久久久久性色| 日本成人在线网站| 精品一区二区三区日韩| 国产成人午夜电影网| 成人av一区二区三区| 97se亚洲国产综合在线| 在线日韩av片| 欧美一级二级三级乱码| 2014亚洲片线观看视频免费| 中文字幕不卡的av| 一二三四社区欧美黄| 欧美aaaaaa午夜精品| 国产成人自拍在线| 91久久精品一区二区二区| 91精品国产综合久久香蕉麻豆| 欧美一区二区三区视频免费| 久久久久一区二区三区四区| 中文字幕亚洲精品在线观看| 五月激情综合婷婷| 国产福利一区在线| 色综合天天综合在线视频| 538在线一区二区精品国产| 欧美一区二区视频在线观看2022| 欧美xfplay| 综合分类小说区另类春色亚洲小说欧美 | 亚洲婷婷综合色高清在线| 精品国产一区二区三区久久久蜜月| 久久久久久久久伊人| 亚洲精品视频在线观看网站| 日韩精品色哟哟| 国产成人激情av| 欧美人与性动xxxx| 国产精品进线69影院| 午夜伊人狠狠久久| 风间由美一区二区av101 | 国内精品写真在线观看| aaa亚洲精品| 欧美成人免费网站| 亚洲人妖av一区二区| 激情综合网天天干| 欧美日韩和欧美的一区二区| 久久九九国产精品| 日韩精品欧美成人高清一区二区| 国产.欧美.日韩| 久久人人97超碰com| 亚洲不卡一区二区三区| jizzjizzjizz欧美| 精品电影一区二区三区| 亚洲成av人影院| 在线日韩一区二区| 国产精品久久久久影院老司| 免费观看久久久4p| 欧美日韩三级视频| 欧美一级欧美三级| 偷拍一区二区三区四区| 色8久久人人97超碰香蕉987| 久久久久久麻豆| 久久精品国产久精国产| 91久久精品一区二区三区| 亚洲视频小说图片| www.激情成人| 国产免费久久精品| 国产91在线观看| 久久亚洲影视婷婷| 激情小说亚洲一区| 精品国产免费视频| 国产在线精品免费av| 精品人伦一区二区色婷婷| 男人的j进女人的j一区| 91麻豆精品国产91|