Sgcwebsockets 4.5.1
Total Page:16
File Type:pdf, Size:1020Kb
sgcWebSockets 4.5.2 Table of Contents Versions Support ....................................................................................................................... 5 Delphi supported IDE ......................................................................................................... 5 CBuilder supported IDE ...................................................................................................... 5 FreePascal supported IDE ................................................................................................. 5 Trial Version ....................................................................................................................... 5 Indy Package ...................................................................................................................... 6 Installation .................................................................................................................................. 7 Delphi / CBuilder / Lazarus .................................................................................................... 7 Install Package......................................................................................................................... 11 Install Errors ............................................................................................................................. 18 Intraweb package not found ............................................................................................. 18 Indy Package not found .................................................................................................... 19 c00000005 ACCESS_VIOLATION in CBuilder ................................................................ 20 Unable to find package import: sgcWebSocketsCXXX.bpi in CBuilder Win64 ................ 20 Ambiguous reference System.ZLib.hpp and IdZLib.hpp CBuilder ................................... 20 Checksum changed under Lazarus .................................................................................. 20 Configure Install ....................................................................................................................... 21 Indy ................................................................................................................................... 22 Intraweb ............................................................................................................................ 22 QuickStart ................................................................................................................................ 23 WebSockets Components ................................................................................................ 23 HTTP Components ........................................................................................................... 23 Threading Flow ................................................................................................................. 23 How Build Applications ..................................................................................................... 23 Fast Performance Server ................................................................................................. 23 Memory Manager ............................................................................................................. 24 OpenSSL .......................................................................................................................... 24 Linux (Lazarus) ................................................................................................................. 24 Components............................................................................................................................. 25 QuickStart | WebSockets ..................................................................................................... 25 QuickStart | HTTP ................................................................................................................ 28 QuickStart | Threading Flow .................................................................................................... 30 QuickStart | Build ..................................................................................................................... 32 Build ......................................................................................................................................... 33 Build | OSX Application ........................................................................................................ 33 Build | Android Application ................................................................................................... 35 Build | iOS Application .......................................................................................................... 36 Fast Performance Servers ....................................................................................................... 38 Servers based on Indy Library ......................................................................................... 38 Server Based on HTTP.SYS ............................................................................................ 39 Memory Manager ..................................................................................................................... 41 Configuration .................................................................................................................... 41 Benchmark Indy WebSocket Server ................................................................................ 41 Benchmark HTTP.SYS Server ......................................................................................... 42 Comments about Benchmarks ......................................................................................... 43 OpenSSL ................................................................................................................................. 45 openSSL Configurations ................................................................................................... 45 Self-Signed Certificates .................................................................................................... 46 OpenSSL ................................................................................................................................. 48 OpenSSL | Windows ............................................................................................................ 48 OpenSSL | OSX ................................................................................................................... 49 OpenSSL | Android .............................................................................................................. 50 OpenSSL | iOS ..................................................................................................................... 51 General .................................................................................................................................... 53 WebSocket Events ............................................................................................................... 53 WebSocket Parameters Connection .................................................................................... 54 Using inside a DLL ............................................................................................................... 55 i Table of Contents WebBrowser Test ................................................................................................................. 56 Custom Sub-Protocols ......................................................................................................... 57 Features ................................................................................................................................... 60 Authentication ...................................................................................................................... 60 Secure Connections ............................................................................................................. 62 HeartBeat ............................................................................................................................. 64 WatchDog............................................................................................................................. 65 Logs ...................................................................................................................................... 66 HTTP .................................................................................................................................... 67 Broadcast and Channels ...................................................................................................... 68 Bindings................................................................................................................................ 69 Post Big Files ....................................................................................................................... 70 Compression ........................................................................................................................ 71 Flash ..................................................................................................................................... 72 Custom Objects .................................................................................................................... 73 IOCP ....................................................................................................................................