Embedding mongoose 6.4 in C# app

229 views
Skip to first unread message

Caio Figueiredo Abecia

unread,
Jul 7, 2016, 1:53:06 PM7/7/16
to mongoose-users
Hello !

I'm trying to develop an app in C# (exe) with mongoose embedded as a webserver.

I got it working ok with mongoose version 5.6 in my tests, but that's because on version 5.6 Sergey Lyubka has already created a csharp example class for a wrapper (5.6 > mongoose/examples/csharp/mongoose.cs). So it wasn't so hard to make it works.
But on version 6.4 it has major changes and there is not a example of a mongoose wrapper yet.

I'll have to code myself or some of you guys has already some code to share?

I really appreciate any help.

Thanks!

Sergey Lyubka

unread,
Jul 8, 2016, 2:23:35 AM7/8/16
to mongoose-users
No, newer versions do not have C# examples.

--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Caio Figueiredo Abecia

unread,
Jul 8, 2016, 11:46:35 AM7/8/16
to mongoose-users
Thanks for the feedback Sergey.

I'll need a webserver embedded solution to be used with C# that can publish a rest service (json).
In version 5.6 the example "restful_api.c" is working ok but with xml.
I do not have much experience in C. My expertise is C#.
I'm testing Mongoose and other solutions. I was hoping Mongoose would fit to our needs.
Do you suggest something? Do you have any idea to get it working with Mongoose?

Thanks in advance!

Sergey Lyubka

unread,
Jul 8, 2016, 11:55:51 AM7/8/16
to mongoose-users
Mongoose is designed to be used in C/C++ programs.
REStful + JSON is very common use case - yes Mongoose can do that.
That's how we use it all the time ourselves.

Sergey Lyubka

unread,
Jul 8, 2016, 11:56:49 AM7/8/16
to mongoose-users
But with C# requirement - you're out of luck, unless your project is commercial and management is OK paying for the custom integration with c#.
Reply all
Reply to author
Forward
0 new messages