
 
易语言SSL通信模块源码
系统结构:设置证书文件,连接,取Socket句柄,建立SSL连接,断开连接,取服务器IP,发送数据,取回数据,取消息类型,标记参数是否正确,设置证书文件,启动服务,取Socket句柄,关闭服务,取消息类型,取客户IP,取客户端口,取客户句柄,取回数据,发送数据,标记参数是否正确,SetCRTPassword,LoadCRTFile,ProcAddr,Ptr_Str,Ptr_Bin,cdeclCall,GetNetAddrName,辅_线程是否已结束,辅_GetTimeOut,辅_调用子程序,子程序_取回传输数据,进入,离开,初始化网络环境,释放网络环境,线程_服务端_监视连接,线程_服务端_消息处理_映射,子程序_服务端_消息处理,子程序_服务端_用户消息通知,线程_服务端_事件获取,线程_客户端_事件获取,子程序_客户端_消息处理,子程序_客户端_用户消息通知,CopyToServerStruct,CopyFromServerStruct,CopyToClientStruct,CopyFromClientStruct,CopyToHostEnt,CopyToPtr_FromPtr,CallWindowProc,inet_ntoa,Sleep,lstrcpynA_Bin,lstrcpynA_str,SSL_library_init,TLSv1_client_method,TLSv1_server_method, 
======类_客户端_SSL 
           |  | 
           |  |------ _初始化 
           |  | 
           |  |------ _销毁 
           |  | 
           |  |------ 设置证书文件 
           |  | 
           |  |------ 连接 
           |  | 
           |  |------ 取Socket句柄 
           |  | 
           |  |------ 建立SSL连接 
           |  | 
           |  |------ 断开连接 
           |  | 
           |  |------ 取服务器IP 
           |  | 
           |  |------ 发送数据 
           |  | 
           |  |------ 取回数据 
           |  | 
           |  |------ 取消息类型 
           |  | 
           |  |------ 标记参数是否正确 
           |  | 
           |  | 
======类_服务端_SSL 
           |  | 
           |  |------ _初始化 
           |  | 
           |  |------ _销毁 
           |  | 
           |  |------ 设置证书文件 
           |  | 
           |  |------ 启动服务 
           |  | 
           |  |------ 取Socket句柄 
           |  | 
           |  |------ 关闭服务 
           |  | 
           |  |------ 取消息类型 
           |  | 
           |  |------ 取客户IP 
           |  | 
           |  |------ 取客户端口 
           |  | 
           |  |------ 取客户句柄 
           |  | 
           |  |------ 取回数据 
           |  | 
           |  |------ 发送数据 
           |  | 
           |  |------ 标记参数是否正确 
           |  | 
           |  | 
======KernelFunc 
           |  | 
           |  |------ SetCRTPassword 
           |  | 
           |  |------ LoadCRTFile 
           |  | 
           |  |------ ProcAddr 
           |  | 
           |  |------ Ptr_Str 
           |  | 
           |  |------ Ptr_Bin 
           |  | 
           |  |------ cdeclCall 
           |  | 
           |  |------ GetNetAddrName 
           |  | 
           |  |------ 辅_线程是否已结束 
           |  | 
           |  |------ 辅_GetTimeOut 
           |  | 
           |  |------ 辅_调用子程序 
           |  | 
           |  |------ 子程序_取回传输数据 
           |  | 
           |  | 
======类_许可区 
           |  | 
           |  |------ _销毁 
           |  | 
           |  |------ _初始化 
           |  | 
           |  |------ 进入 
           |  | 
           |  |------ 离开 
           |  | 
           |  | 
======类_网络环境_SSL 
           |  | 
           |  |------ 初始化网络环境 
           |  | 
           |  |------ 释放网络环境 
           |  | 
           |  | 
======Func_Server 
           |  | 
           |  |------ 线程_服务端_监视连接 
           |  | 
           |  |------ 线程_服务端_消息处理_映射 
           |  | 
           |  |------ 子程序_服务端_消息处理 
           |  | 
           |  |------ 子程序_服务端_用户消息通知 
           |  | 
           |  |------ 线程_服务端_事件获取 
           |  | 
           |  | 
======Func_Client 
           |  | 
           |  |------ 线程_客户端_事件获取 
           |  | 
           |  |------ 子程序_客户端_消息处理 
           |  | 
           |  |------ 子程序_客户端_用户消息通知 
           |  | 
           |  | 
======EcStart 
           |  | 
           |  |------ _启动子程序 
           |  | 
           |  |------ _临时子程序 
           |  | 
           |  | 
======调用的Dll 
           |  | 
           |  |---[dll]------   _accept 
           |  | 
           |  |---[dll]------   _bind 
           |  | 
           |  |---[dll]------   _closesocket 
           |  | 
           |  |---[dll]------   _connect 
           |  | 
           |  |---[dll]------   _gethostbyaddr 
           |  | 
           |  |---[dll]------   _gethostname 
           |  | 
           |  |---[dll]------   _inet_addr 
           |  | 
           |  |---[dll]------   _inet_ntoa 
           |  | 
           |  |---[dll]------   _listen 
           |  | 
           |  |---[dll]------   _recv 
           |  | 
           |  |---[dll]------   _select 
           |  | 
           |  |---[dll]------   _select_Forever 
           |  | 
           |  |---[dll]------   _send 
           |  | 
           |  |---[dll]------   _socket 
           |  | 
           |  |---[dll]------   _WSACleanup 
           |  | 
           |  |---[dll]------   _WSAGetLastError 
           |  | 
           |  |---[dll]------   _WSAStartup 
           |  | 
           |  |---[dll]------   _CreateThread 
           |  | 
           |  |---[dll]------   _htons 
           |  | 
           |  |---[dll]------   CopyToServerStruct 
           |  | 
           |  |---[dll]------   CopyFromServerStruct 
           |  | 
           |  |---[dll]------   CopyToClientStruct 
           |  | 
           |  |---[dll]------   CopyFromClientStruct 
           |  | 
           |  |---[dll]------   CopyToHostEnt 
           |  | 
           |  |---[dll]------   CopyToPtr_FromPtr 
           |  | 
           |  |---[dll]------   _GlobalAlloc 
           |  | 
           |  |---[dll]------   _GlobalFree 
           |  | 
           |  |---[dll]------   _GlobalSize 
           |  | 
           |  |---[dll]------   _DeleteCriticalSection 
           |  | 
           |  |---[dll]------   _EnterCriticalSection 
           |  | 
           |  |---[dll]------   _InitializeCriticalSection 
           |  | 
           |  |---[dll]------   _LeaveCriticalSection 
           |  | 
           |  |---[dll]------   CallWindowProc 
           |  | 
           |  |---[dll]------   _shutdown 
           |  | 
           |  |---[dll]------   inet_ntoa 
           |  | 
           |  |---[dll]------   _ntohs 
           |  | 
           |  |---[dll]------   _gethostbyname 
           |  | 
           |  |---[dll]------   _setsockopt 
           |  | 
           |  |---[dll]------   _getsockopt 
           |  | 
           |  |---[dll]------   _ioctlsocket 
           |  | 
           |  |---[dll]------   _GetThreadTimes 
           |  | 
           |  |---[dll]------   Sleep 
           |  | 
           |  |---[dll]------   _WSACreateEvent 
           |  | 
           |  |---[dll]------   _WSAEventSelect 
           |  | 
           |  |---[dll]------   _WSAWaitForMultipleEvents 
           |  | 
           |  |---[dll]------   _WSACloseEvent 
           |  | 
           |  |---[dll]------   _WSAEnumNetworkEvents 
           |  | 
           |  |---[dll]------   _WaitForSingleObject 
           |  | 
           |  |---[dll]------   _getsockname 
           |  | 
           |  |---[dll]------   _getpeername 
           |  | 
           |  |---[dll]------   _GetModuleHandle 
           |  | 
           |  |---[dll]------   _GetProcAddress 
           |  | 
           |  |---[dll]------   lstrcpynA_Bin 
           |  | 
           |  |---[dll]------   lstrcpynA_str 
           |  | 
           |  |---[dll]------   SSL_library_init 
           |  | 
           |  |---[dll]------   TLSv1_client_method 
           |  | 
           |  |---[dll]------   TLSv1_server_method 
 
  
调用的DLL命令: 
.DLL命令 _accept, 整数型, "ws2_32.dll", "accept" 
    .参数 s, 整数型 
    .参数 addr, sockaddr, 传址 
    .参数 addrlen, 整数型, 传址 
.DLL命令 _bind, 整数型, "ws2_32.dll", "bind" 
    .参数 s, 整数型 
    .参数 addr, sockaddr 
    .参数 namelen, 整数型 
.DLL命令 _closesocket, 整数型, "ws2_32.dll", "closesocket" 
    .参数 s, 整数型 
.DLL命令 _connect, 整数型, "ws2_32.dll", "connect" 
    .参数 s, 整数型 
    .参数 name, sockaddr 
    .参数 namelen, 整数型 
.DLL命令 _gethostbyaddr, , "ws2_32.dll", "gethostbyaddr" 
    .参数 addr, 文本型 
    .参数 len, 整数型 
    .参数 type, 整数型 
.DLL命令 _gethostname, 整数型, "ws2_32.dll", "gethostname" 
    .参数 name, 文本型 
    .参数 namelen, 整数型 
.DLL命令 _inet_addr, 整数型, "ws2_32.dll", "inet_addr" 
    .参数 cp, 文本型 
.DLL命令 _inet_ntoa, 文本型, "ws2_32.dll", "inet_ntoa" 
    .参数 lIn, 整数型 
.DLL命令 _listen, 整数型, "ws2_32.dll", "listen" 
    .参数 s, 整数型 
    .参数 backlog, 整数型 
.DLL命令 _recv, 整数型, "ws2_32.dll", "recv" 
    .参数 s, 整数型 
    .参数 buf, 整数型 
    .参数 lLen, 整数型 
    .参数 flags, 整数型 
.DLL命令 _select, 整数型, "WS2_32.DLL", "select" 
    .参数 nfds, 整数型 
    .参数 readfds, fd_set, 传址 
    .参数 writefds, fd_set, 传址 
    .参数 exceptfds, 整数型 
    .参数 timeout, timeval, 传址 
.DLL命令 _select_Forever, 整数型, "WS2_32.DLL", "select" 
    .参数 nfds, 整数型 
    .参数 readfds, fd_set, 传址 
    .参数 writefds, fd_set, 传址 
    .参数 exceptfds, 整数型 
    .参数 timeout, 整数型 
.DLL命令 _send, 整数型, "ws2_32.dll", "send" 
    .参数 s, 整数型 
    .参数 buf, 字节集 
    .参数 lLen, 整数型 
    .参数 flags, 整数型 
.DLL命令 _socket, 整数型, "ws2_32.dll", "socket" 
    .参数 af, 整数型 
    .参数 lType, 整数型 
    .参数 protocol, 整数型 
.DLL命令 _WSACleanup, 整数型, "ws2_32.dll", "WSACleanup" 
.DLL命令 _WSAGetLastError, 整数型, "ws2_32.dll", "WSAGetLastError" 
.DLL命令 _WSAStartup, 整数型, "ws2_32.dll", "WSAStartup" 
    .参数 wVersionRequired, 短整数型 
    .参数 lpWSAData, WSADATA 
.DLL命令 _CreateThread, 整数型, , "CreateThread" 
    .参数 lpThreadAttributes 
    .参数 dwStackSize 
    .参数 lpStartAddress, 子程序指针 
    .参数 lpParameter 
    .参数 dwCreationFlags 
    .参数 lpThreadId 
.DLL命令 _htons, 整数型, "ws2_32.dll", "htons" 
    .参数 hostshort, 短整数型 
.DLL命令 CopyToServerStruct, , , "RtlMoveMemory" 
    .参数 pDest, t_ServerStruct 
    .参数 pSrc, 整数型 
    .参数 ByteLen, 整数型 
.DLL命令 CopyFromServerStruct, , , "RtlMoveMemory" 
    .参数 pDest, 整数型 
    .参数 pSrc, t_ServerStruct 
    .参数 ByteLen, 整数型 
.DLL命令 CopyToClientStruct, , , "RtlMoveMemory" 
    .参数 pDest, t_ClientStruct 
    .参数 pSrc, 整数型 
    .参数 ByteLen, 整数型 
.DLL命令 CopyFromClientStruct, , , "RtlMoveMemory" 
    .参数 pDest, 整数型 
    .参数 pSrc, t_ClientStruct 
    .参数 ByteLen, 整数型 
.DLL命令 CopyToHostEnt, , , "RtlMoveMemory" 
    .参数 pDest, HostEnt 
    .参数 pSrc, 整数型 
    .参数 ByteLen, 整数型 
.DLL命令 CopyToPtr_FromPtr, , , "RtlMoveMemory" 
    .参数 pDest, 整数型 
    .参数 pSrc, 整数型 
    .参数 ByteLen, 整数型 
.DLL命令 _GlobalAlloc, 整数型, , "GlobalAlloc" 
    .参数 wFlags, 整数型 
    .参数 dwBytes, 整数型 
.DLL命令 _GlobalFree, 整数型, , "GlobalFree" 
    .参数 hMem, 整数型 
.DLL命令 _GlobalSize, 整数型, , "GlobalSize" 
    .参数 Ptr 
.DLL命令 _DeleteCriticalSection, , , "DeleteCriticalSection" 
    .参数 lpCriticalSection, RTL_CRITICAL_SECTION 
.DLL命令 _EnterCriticalSection, , , "EnterCriticalSection" 
    .参数 lpCriticalSection, RTL_CRITICAL_SECTION 
.DLL命令 _InitializeCriticalSection, , , "InitializeCriticalSection" 
    .参数 lpCriticalSection, RTL_CRITICAL_SECTION 
.DLL命令 _LeaveCriticalSection, , , "LeaveCriticalSection" 
    .参数 lpCriticalSection, RTL_CRITICAL_SECTION 
.DLL命令 CallWindowProc, 整数型, , "CallWindowProcA" 
    .参数 Proc, 字节集 
    .参数 参数1 
    .参数 参数2 
    .参数 参数3 
    .参数 参数4 
.DLL命令 _shutdown, 整数型, "ws2_32.dll", "shutdown" 
    .参数 s, 整数型 
    .参数 how, 整数型 
.DLL命令 inet_ntoa, 文本型, "ws2_32.dll", "inet_ntoa" 
    .参数 in, 整数型 
.DLL命令 _ntohs, 整数型, "ws2_32.dll", "ntohs" 
    .参数 netshort, 短整数型 
.DLL命令 _gethostbyname, 整数型, "ws2_32.dll", "gethostbyname" 
    .参数 name, 文本型 
.DLL命令 _setsockopt, 整数型, "ws2_32.dll", "setsockopt" 
    .参数 s, 整数型 
    .参数 level, 整数型 
    .参数 optname, 整数型 
    .参数 optval, 整数型, 传址 
    .参数 optlen, 整数型 
.DLL命令 _getsockopt, 整数型, "ws2_32.dll", "getsockopt" 
    .参数 s, 整数型 
    .参数 level, 整数型 
    .参数 optname, 整数型 
    .参数 optval, 整数型, 传址 
    .参数 optlen, 整数型, 传址 
.DLL命令 _ioctlsocket, 整数型, "ws2_32.dll", "ioctlsocket" 
    .参数 s, 整数型 
    .参数 cmd, 整数型 
    .参数 argp, 整数型, 传址 
.DLL命令 _GetThreadTimes, 逻辑型, , "GetThreadTimes" 
    .参数 hThread, 整数型 
    .参数 lpCreationTime, FILETIME 
    .参数 lpExitTime, FILETIME 
    .参数 lpKernelTime, FILETIME 
    .参数 lpUserTime, FILETIME 
.DLL命令 Sleep, , , "Sleep" 
    .参数 time 
.DLL命令 _WSACreateEvent, 整数型, "ws2_32.dll", "WSACreateEvent" 
.DLL命令 _WSAEventSelect, 整数型, "ws2_32.dll", "WSAEventSelect" 
    .参数 s, 整数型 
    .参数 hEventObject, 整数型 
    .参数 lNetworkEvents, 整数型 
.DLL命令 _WSAWaitForMultipleEvents, 整数型, "ws2_32.dll", "WSAWaitForMultipleEvents" 
    .参数 cEvents, 整数型 
    .参数 lphEvents, 整数型, 数组 
    .参数 fWaitAll, 逻辑型 
    .参数 dwTimeout, 整数型 
    .参数 fAlertable, 逻辑型 
.DLL命令 _WSACloseEvent, 整数型, "ws2_32.dll", "WSACloseEvent" 
    .参数 hEvent, 整数型 
.DLL命令 _WSAEnumNetworkEvents, 整数型, "ws2_32.dll", "WSAEnumNetworkEvents" 
    .参数 s, 整数型 
    .参数 hEventObject, 整数型 
    .参数 lpNetworkEvents, WsaNetWorkEvents 
.DLL命令 _WaitForSingleObject, 整数型, , "WaitForSingleObject" 
    .参数 hHandle, 整数型 
    .参数 dwMilliseconds, 整数型 
.DLL命令 _getsockname, 整数型, "ws2_32.dll", "getsockname" 
    .参数 s, 整数型 
    .参数 name, sockaddr 
    .参数 namelen, 整数型, 传址 
.DLL命令 _getpeername, 整数型, "ws2_32.dll", "getpeername" 
    .参数 s, 整数型 
    .参数 name, sockaddr 
    .参数 namelen, 整数型, 传址 
.DLL命令 _GetModuleHandle, 整数型, , "GetModuleHandleA" 
    .参数 lpModuleName, 文本型 
.DLL命令 _GetProcAddress, 整数型, , "GetProcAddress" 
    .参数 hModule, 整数型 
    .参数 lpProcName, 文本型 
.DLL命令 lstrcpynA_Bin, 整数型, , "lstrcpynA" 
    .参数 ptr1, 字节集 
    .参数 ptr2, 字节集 
    .参数 len 
.DLL命令 lstrcpynA_str, 整数型, , "lstrcpynA" 
    .参数 ptr1, 文本型 
    .参数 ptr2, 文本型 
    .参数 len 
.DLL命令 SSL_library_init, 整数型, "ssleay32.dll", "SSL_library_init" 
.DLL命令 TLSv1_client_method, 整数型, "ssleay32.dll", "TLSv1_client_method" 
.DLL命令 TLSv1_server_method, 整数型, "ssleay32.dll", "TLSv1_server_method" 
易语言卷帘工具箱源码,初始化卷帘,取星期,更换风格,搜索文件,线程搜索,修改底色,获取信息,取信息记录,取网络信息...
易语言仅用核心支持库实现对外部数据库的操作ADODB操作外部数据库例程源码,根据村组查询数据,数据库_读取数据到高级表格,数据库_保存高级表格数据到数据库,数据库_读取数据到列表...
易语言仅用核心支持库实现对外部数据库的操作ADODB操作外部数据库例程源码,根据村组查询数据,数据库_读取数据到高级表格,数据库_保存高级表格数据到数据库,数据库_读取数据到列表...
易语言仅用核心支持库实现对外部数据库的操作ADODB操作外部数据库例程源码,根据村组查询数据,数据库_读取数据到高级表格,数据库_保存高级表格数据到数据库,数据库_读取数据到列表...
易语言两个文件内存中通讯源码,子程序1,打开文件,生成空文件,生成重复字节文件,移到文件首,移到文件尾,移动读写位置,取读写位置,关闭文件,取文件长度,写出字节集,是否在文件尾,取错...
易语言易模块管理器Include目录源码,CopyTo_CreateProcessDebugInfo,CopyTo_CreateThreadDebugInfo,CopyTo_ExitThreadDebugInfo,CopyTo_ExitProcessDebugInfo,CopyTo_LoadDllDebugInfo,CopyTo_UnloadDllDebugInfo,CopyTo_ExceptionDebugInfo,Copy...
易语言卷帘工具箱源码,初始化卷帘,取星期,更换风格,搜索文件,线程搜索,修改底色,获取信息,取信息记录,取网络信息...
子程序1,打开文件,生成空文件,生成重复字节文件,移到文件首,移到文件尾,移动读写位置,取读写位置,关闭文件,取文件长度,写出字节集,是否在文件尾,取错误信息,读入字节集,读入2M字节集,清除文件缓冲区,读入文本,写出文本,写文本行,读入一行,插入字节集,取文件号...
初始化卷帘,取星期,更换风格,搜索文件,线程搜索,修改底色,获取信息,取信息记录,取网络信息...