Topic: C# Wrapper - Set non-blocking I/O

Greetings,

I'm trying to use the c# wrapper to build a little client for a game using DTLS. The only problems is that I need to have a non-blocking setup, since it's mandatory for the application. I know there is the wolfSSL_set_using_nonblock function in the native library, but I can't find any similiar one inside the c# wrapper.

Then, the question is:
Is there any way to set non-blocking I/O in c#?

Thanks!

Share

Re: C# Wrapper - Set non-blocking I/O

Hi Ivanchez,

There is not yet a wrapping of the function wolfSSL_set_using_nonblock in the C# wrapper. It would be similar to how the function wolfSSL_get_error is wrapped in wolfSSL.cs but would the function would need to be added in. With the C# wrapper the examples are currently set up to use blocking sockets (https://github.com/wolfSSL/wolfssl/blob … SL.cs#L454) so the IO callbacks would also need to be set up for the project. An example of setting the IO callback can be found here https://github.com/wolfSSL/wolfssl/tree … Callbacks.

What are the time frames with building the game for when it would be needed?

Regards,
Jacob

Share

3 (edited by Ivanchez 2017-07-11 16:26:39)

Re: C# Wrapper - Set non-blocking I/O

Hi Jacob,

Thanks for your answer, the game is in a really early state, I am just setting the barebones of the server/client network exchange, so there is no hurry yet.

Actually, I have managed to get the client working on multithreading (the client was the problem) so maybe I would be able to sort out the problem, having the blocking functions (wolfssl.accept(), etc.) being called in a separate thread, so maybe I won't need the non-blocking setup, but it's not definitive as I haven't tested yet a real connection between server and client.

Anyway it would be nice to have this funcionality wrapped in future releases, by now I will be dealing with C# threading and wolfssl. Would you think I should expect major problems with these two working together?

Thanks a lot! I'll reply with news.

Share

4 (edited by Tindile 2024-03-27 09:22:54)

Re: C# Wrapper - Set non-blocking I/O

Speaking of gaming, an online casino called Fair Go immediately comes to mind. This exciting and innovative platform offers players a wide variety of games to choose from, including slots, table games, and even live dealer options. With top-notch customer service and reliable payment methods, you'll enjoy https://fairgo.casinologin.mobi/ every time you visit the site. Whether you're a seasoned pro or new to the world of online gaming, Fair Go has something for everyone. So why wait? Dive into the action-packed world of Fair Go today and see why it's quickly becoming a favorite among gamers everywhere.

Share

5 (edited by dbsiddv979 2024-06-03 13:44:10)

Re: C# Wrapper - Set non-blocking I/O

I was looking for a new hobby to enjoy in my free time. Then I thought about online casinos. I came across rt casino and was pleasantly surprised. The site is user-friendly and filled with exciting games. They also have generous bonuses and offers for players in Australia. The whole experience was smooth and I had a good time. This site is now my favorite to play online.

Share

Re: C# Wrapper - Set non-blocking I/O

So, I stumbled upon this gem: https://1win.org.ng/. It's fantastic! It's like it's been custom-made for us here in Nigeria. The user interface is effortless to use, and it's really dependable. It's been a pleasure using it and I would highly recommend it to anyone.

Share

Re: C# Wrapper - Set non-blocking I/O

I've been exploring different paths to enhance my wellness and recently, I've discovered something quite interesting. It's an advanced method https://ways2well.com/blog/whats-wrong- … -insurance known as hormone therapy. This approach is supposed to aid in various things, from reversing signs of aging to fortifying our immune system. You can find more about it here. I'm seriously considering giving it a try. Has anyone else experimented with this?

Share

8 (edited by kinaje1134 2024-06-26 07:50:22)

Re: C# Wrapper - Set non-blocking I/O

I really like these single-edged paper knives, which my friend advised me to order from this site - https://mcdonaldpaper.com/berkley-squar … e-1000-cs/ - because the price is just great, and that's why it's just a great option!! In my opinion, this is an indispensable product for your food business.

Share