Thanks for the help !
I'm very close to a working example now on windows ... (linux will follow).
Search found 177 matches
- Tue Jan 19, 2021 5:01 pm
- Forum: Coding Questions
- Topic: Convert C structure to purebasic
- Replies: 3
- Views: 1269
- Sat Jan 16, 2021 4:01 pm
- Forum: Coding Questions
- Topic: Convert C structure to purebasic
- Replies: 3
- Views: 1269
Convert C structure to purebasic
Hi,
I'm working on a wrapper for the libwebsockets library: ( https://libwebsockets.org/ )
But I have some issues with this C structure:
/** struct lws_http_mount
*
* arguments for mounting something in a vhost's url namespace
*/
struct lws_http_mount {
const struct lws_http_mount *mount ...
I'm working on a wrapper for the libwebsockets library: ( https://libwebsockets.org/ )
But I have some issues with this C structure:
/** struct lws_http_mount
*
* arguments for mounting something in a vhost's url namespace
*/
struct lws_http_mount {
const struct lws_http_mount *mount ...
- Mon Jan 11, 2021 12:09 pm
- Forum: Coding Questions
- Topic: Verify JWT Signature
- Replies: 1
- Views: 869
Verify JWT Signature
Hi
I'm looking for an example in Purebasic (or c library) to create and verify a JWT Signature.
The JWT I use to test can be found on https://jwt.io
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.DPA7RLzWH2bxJGO ...
I'm looking for an example in Purebasic (or c library) to create and verify a JWT Signature.
The JWT I use to test can be found on https://jwt.io
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.DPA7RLzWH2bxJGO ...
- Tue Dec 15, 2020 8:42 am
- Forum: Tricks 'n' Tips
- Topic: Zipping Folders
- Replies: 2
- Views: 1922
Re: Zipping Folders
It's working fine on windows.
Thanks for sharing !
Thanks for sharing !
- Mon May 06, 2019 7:39 am
- Forum: Applications - Feedback and Discussion
- Topic: PB.Ex WebGadget (Windows) (WebKit)
- Replies: 97
- Views: 108312
Re: PB.Ex WebGadget (Windows) (WebKit)
I looked at the C++ component. Unfortunately the effort is too big. I would either have to develop a C++ wrapper for my C# DLL that passes to PB or I would have to rebuild my complete C# DLL in C++ with all functions.
Thanks for the feedback.
Might be an option in the (near) future when they have ...
Thanks for the feedback.
Might be an option in the (near) future when they have ...
- Mon Apr 29, 2019 10:42 am
- Forum: Applications - Feedback and Discussion
- Topic: PB.Ex WebGadget (Windows) (WebKit)
- Replies: 97
- Views: 108312
Re: PB.Ex WebGadget (Windows) (WebKit)
This is really cool !
I was wondering if it would be easy to replace the current engine by https://ultralig.ht/.
The reason I ask this ...
I was wondering if it would be easy to replace the current engine by https://ultralig.ht/.
The reason I ask this ...
Kind regardsUltra-light
Only 8MB compressed, low memory usage, we've stripped WebKit to the bare essentials.
- Mon Nov 12, 2018 8:40 am
- Forum: Coding Questions
- Topic: Trying to convert some c code ...
- Replies: 7
- Views: 2258
Re: Trying to convert some c code ...
It's working fine now. Thank you everyone !
- Sun Nov 11, 2018 1:36 pm
- Forum: Coding Questions
- Topic: Trying to convert some c code ...
- Replies: 7
- Views: 2258
Re: Trying to convert some c code ...
I tried to use the threadsafe flag, but still no luck ...
I keep on getting Invalid memory access at the Endprocedure line of the req_cb procedure.
Definition of the functions I try to use:
/**
* Callback signature used to handle requests and responses.
* \param[out] cls User-defined closure ...
I keep on getting Invalid memory access at the Endprocedure line of the req_cb procedure.
Definition of the functions I try to use:
/**
* Callback signature used to handle requests and responses.
* \param[out] cls User-defined closure ...
- Wed Nov 07, 2018 3:13 pm
- Forum: Coding Questions
- Topic: Trying to convert some c code ...
- Replies: 7
- Views: 2258
Re: Trying to convert some c code ...
Thanks for this fast reply ! The command is working now, but another error appeared ...
When the callback function is called, It crashes at the end of the procedure.
I'm trying to see if I can use libsagui ( https://github.com/risoflora/libsagui/releases ) to implement an embedded webserver.
This ...
When the callback function is called, It crashes at the end of the procedure.
I'm trying to see if I can use libsagui ( https://github.com/risoflora/libsagui/releases ) to implement an embedded webserver.
This ...
- Wed Nov 07, 2018 2:02 pm
- Forum: Coding Questions
- Topic: Trying to convert some c code ...
- Replies: 7
- Views: 2258
Trying to convert some c code ...
Hi,
Can someone help me with the translation of this c code to purebasic please ?
int sg_httpres_sendbinary ( struct sg_httpres * res,
void * buf,
size_t size,
const char * content_type,
unsigned int status
)
I've tried to use this
PrototypeC.i sg_httpres_sendbinary(*res, *buf, size, *content ...
Can someone help me with the translation of this c code to purebasic please ?
int sg_httpres_sendbinary ( struct sg_httpres * res,
void * buf,
size_t size,
const char * content_type,
unsigned int status
)
I've tried to use this
PrototypeC.i sg_httpres_sendbinary(*res, *buf, size, *content ...
- Wed Aug 08, 2018 8:57 am
- Forum: General Discussion
- Topic: Users complain boring user interface of my apps
- Replies: 186
- Views: 69906
Re: Users complain boring user interface of my apps
Me too.Kukulkan wrote:I definitely would be willing to spend some extra money on this!
- Thu Aug 02, 2018 9:16 am
- Forum: Windows
- Topic: Sciter; PB 5.42 LTS; Any prototypes available?
- Replies: 8
- Views: 6334
Re: Sciter; PB 5.42 LTS; Any prototypes available?
@privetamerica:
Thanks a lot !
@fred:
Any chance that PureBasic would include a sciter gadget in the near future ?
Thanks a lot !

@fred:
Any chance that PureBasic would include a sciter gadget in the near future ?
- Thu May 17, 2018 9:57 am
- Forum: Feature Requests and Wishlists
- Topic: HTTP/2 + websocket
- Replies: 17
- Views: 7436
HTTP/2 + websocket
I just found this C library ... https://libwebsockets.org/
HTTP(S) serving and client operation
HTTP/2 support for serving
WS(S) serving and client operation
support for linux, bsd, windows etc... and very small nonlinux targets like ESP32
Could this be added to PureBasic ?
HTTP(S) serving and client operation
HTTP/2 support for serving
WS(S) serving and client operation
support for linux, bsd, windows etc... and very small nonlinux targets like ESP32
Could this be added to PureBasic ?
- Mon Nov 13, 2017 3:38 pm
- Forum: Windows
- Topic: Sciter; PB 5.42 LTS; Any prototypes available?
- Replies: 8
- Views: 6334
Re: Sciter; PB 5.42 LTS; Any prototypes available?
Hi,
Just wondering if someone managed to made Sciter running with PB incl. callbacks ?
Maybe we can start a community project for this ?
Thanks.
Just wondering if someone managed to made Sciter running with PB incl. callbacks ?
Maybe we can start a community project for this ?
Thanks.
- Mon Nov 13, 2017 3:21 pm
- Forum: Feature Requests and Wishlists
- Topic: CreateNetworkServerSSL()
- Replies: 10
- Views: 5642