Add-in
About add-in
- Add-in support is avaidable since version 1.06. A add-in is just a simple api dll that exported function AddinData. Since version 1.06.1 it is possible to configurate the add-in settings on the settings pages when the add-in support this. The add-in support where made to expend the server functions.
- Type 1 was made to expend the HTTP protocol, like PUT or DELETE. It is also possible to take over the protocols HEAD,GET,POST. Type 1 was also made for a stat add-in
- Type 2 was made to to check updates for type 1 or 3, but it can be used for anything.
Type 3 (avaidable since 1.06.2)
- Type 3 was made for enscripted protocols like TLS, or for other protocols, for example a smtp server.
With functions does a add-in need?
- Every Add-in need to export function AddinData. The AddinData will send the address of the handle function witch is different on every type. Optionaly it can send the Name\Author\Version\Status\Status priority\Description and the address of the ConfigProc if it is able to change settings for this add-in.
- Type 1 need to send a string, ending with two zero bytes, with the protocols it supports. And it needs to send the address this handler. The handler will be called on every request when the protocols match, or on every request if the protocol is *.
- Type 2 need to send a dword the contains the timeout in miliseconds. The will be used to sleep evertime it called the handler. The server will make a new thread to call the handler that has been send with AddinData.
Type 3 (avaidable since 1.06.2)
- Type 3 need to send a string, ending with two zero bytes, with the protocols it supports. And it needs to send the address this handler. The handler will be called on every request when the protocols match, or on every request if the protocol is *. It is also possible to send a pointer to a SendHandler function.
Example codes
- Filename: add-in.zip
- Product: Add-in example code for TV's server (ASM and C++)
- Version: 1.03
- MD5 hash: 335894EEFC351F0B1C42A286BE344A0F
- Size: 28.834 bytes
Click here to download