From aschwinw@sungate.nl Wed Nov 18 18:20:39 2020 From: aschwinw@sungate.nl (Aschwin Wesselius) Date: Wed, 18 Nov 2020 19:20:39 +0100 Subject: [Mono-list] Writing daemons in C# Message-ID: <007301d6bdd7$86faccd0$0b00a8c0@home> This is a multi-part message in MIME format. ------=_NextPart_000_0070_01D6BDDF.E68C9D60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I just asked this similar question last week and didn't see any reply. = Maybe it is not the right list or whatever??? But since it is about C# on Linux I was thinking people on this list = might have an answer for me. I want to know if it is possible to make your own daemons, and if so can = it be done in C# as well? Where can I find good documentation on writing = daemons for Linux? Second are there any tricks I have to take in account = when doing such thing in C#? I hope you know what I mean.... Since this group is the only group = knowing about C# on the Linux OS and furthermore you are a bunch of = cracks hacking pretty good stuff, so knowledge is there I guess!! Please hit me with answers this time =3D ) Regards, Aschwin PS: If this is a very stupid question afterall, please let me know ------=_NextPart_000_0070_01D6BDDF.E68C9D60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I just asked this similar question last = week and=20 didn't see any reply. Maybe it is not the right list or = whatever???
 
But since it is about C# on Linux I was = thinking=20 people on this list might have an answer for me.
 
I want to know if it is possible to = make your own=20 daemons, and if so can it be done in C# as well? Where can I find good=20 documentation on writing daemons for Linux? Second are there any tricks = I have=20 to take in account when doing such thing in C#?
 
I hope you know what I mean.... Since = this group is=20 the only group knowing about C# on the Linux OS and furthermore you are = a bunch=20 of cracks hacking pretty good stuff, so knowledge is there I=20 guess!!
 
Please hit me with answers this time = =3D=20 )
 
Regards,

Aschwin

PS: If this is a very stupid question afterall, please let me=20 know
------=_NextPart_000_0070_01D6BDDF.E68C9D60-- From aschwinw@sungate.nl Thu Nov 19 09:11:32 2020 From: aschwinw@sungate.nl (Aschwin Wesselius) Date: Thu, 19 Nov 2020 10:11:32 +0100 Subject: [Mono-list] RE: Writing daemons in C# Message-ID: <002601d6be53$fb7a7d40$0b00a8c0@home> This is a multi-part message in MIME format. ------=_NextPart_000_0023_01D6BE5C.5AEF9E10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks guys. I will define "daemons" a bit more. What I want is a program listening on a port, just like FTP or maybe an = instant messaging bot based on Alice (www.alicebot.org). Since I don't = know any C or C++ I would want to do it in C#, or else I have to forget = the whole idea. So to start off, I need to know if it is possible and next, I would go = to figure out how to write daemons in general. There is actually no documentation to find on the internet about writing = daemons or how to set them up to run in the background. Maybe I just = look for the wrong keywords, or google is playing games with me =3D ) And yes, writing a service/daemon once might become easier to have it = both on windows and on unix/linux. So there is no "need" for C# doing daemons, but in my case it might = become helpfull. C and C++ will still be very good languages for that, I = know. But in general I was just curious how to built them and set them = up, and I would do it in C#. I hope it is more clear now..... Regards, Aschwin ------=_NextPart_000_0023_01D6BE5C.5AEF9E10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks guys. I will define "daemons" a = bit=20 more.
 
What I want is a program listening on a = port, just=20 like FTP or maybe an instant messaging bot based on Alice=20 (www.alicebot.org). Since I don't know any C or C++ I would want to do = it in C#,=20 or else I have to forget the whole idea.

So to start off, I need to know if it is possible and next, I = would go=20 to figure out how to write daemons in general.
 
There is actually no documentation to find on the internet about = writing=20 daemons or how to set them up to run in the background. Maybe I just = look for=20 the wrong keywords, or google is playing games with me =3D )
 
And yes, writing a service/daemon once might become easier to have = it both=20 on windows and on unix/linux.
 
So there is no "need" for C# doing daemons, but in my case it might = become=20 helpfull. C and C++ will still be very good languages for that, I know. = But in=20 general I was just curious how to built them and set them up, and I = would do it=20 in C#.
 
I hope it is more clear now.....
 
Regards,

Aschwin
------=_NextPart_000_0023_01D6BE5C.5AEF9E10-- From aschwinw@sungate.nl Thu Nov 19 12:41:29 2020 From: aschwinw@sungate.nl (Aschwin Wesselius) Date: Thu, 19 Nov 2020 13:41:29 +0100 Subject: [Mono-list] RE: Writing daemons in C# Message-ID: <003e01d6be71$50ad39c0$0b00a8c0@home> This is a multi-part message in MIME format. ------=_NextPart_000_003B_01D6BE79.AF25AB10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >Hello, >> The really cool thing would be if you or someone else implemented the >> service-stuff from windows for mono and then you could use that. >Yes, we do need in fact someone with Windows experience to actually >implement the Windows versions of those classes. The Unix case should >be relatively trivial. >Paolo has expressed his interest in the past in having a Mono.Posix.dll >which would provide us with direct access to the Unix API, raw, without >the .NET framework wrapping. Together with some utility classes and >functions Ok, now it is clear that writing daemons like in Windows can not be done = yet on the Linux platform. Since those classes are not yet implemented. First I would be very honoured to do that, but I really can't. Hacking = in C# is a thing to learn and as a purpose I choose the Linux platform = to combine both to learn from each end. Doing such I also wanted to know = how to write daemons, and since hacking away on something that would be = a nice goal to reach for myself. I know that I aim to high sometimes. BUT.... I am not a very experienced programmer and above that I know = very little about hacking classes for perticular OSes. So, I think it is = not a good idea to have myself started on this and get lost or = desinterested. Going by little steps works for me and having a lot of = patience is what I have to learn. And I'm willing to learn how to = program stuff for Linux, but I am very novice on it. Got my box Linux = configured in february for the first time so....... =3D ) So, I will wait (with respect though) till somebody else will have the = need or the urge to build those classes. Along the side of this list I will learn quite enough and maybe in the = future I will add my two cents to the project. Thanks again and I will see how it will develop itself (no not = automatically like AI, I mean the project =3D )) Aschwin ------=_NextPart_000_003B_01D6BE79.AF25AB10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>Hello,

>> The really cool thing would be if = you or=20 someone else implemented the
>> service-stuff from windows for = mono and=20 then you could use that.

>Yes, we do need in fact someone with = Windows=20 experience to actually
>implement the Windows versions of those=20 classes.  The Unix case should
>be relatively=20 trivial.

>Paolo has expressed his interest in the past in = having a=20 Mono.Posix.dll
>which would provide us with direct access to the = Unix API,=20 raw, without
>the .NET framework wrapping.  Together with = some=20 utility classes and
>functions

Ok, now it=20 is clear that writing daemons like in Windows can not be done yet on the = Linux=20 platform. Since those classes are not yet=20 implemented.
 
First I would be very honoured to do = that, but I=20 really can't. Hacking in C# is a thing to learn and as a purpose I = choose the=20 Linux platform to combine both to learn from each end. Doing such I also = wanted=20 to know how to write daemons, and since hacking away on something that = would be=20 a nice goal to reach for myself. I know that I aim to high=20 sometimes.
 
BUT.... I am not a very experienced = programmer and=20 above that I know very little about hacking classes for perticular OSes. = So, I=20 think it is not a good idea to have myself started on this and get lost = or=20 desinterested. Going by little steps works for me and having a lot of = patience=20 is what I have to learn. And I'm willing to learn how to program stuff = for=20 Linux, but I am very novice on it. Got my box Linux configured in = february for=20 the first time so....... =3D )
 
So, I will wait (with respect though) = till somebody=20 else will have the need or the urge to build those classes.
 
Along the side of this list I will = learn quite=20 enough and maybe in the future I will add my two cents to the=20 project.
 
Thanks again and I will see how it will = develop=20 itself (no not automatically like AI, I mean the project =3D = ))
 
Aschwin
------=_NextPart_000_003B_01D6BE79.AF25AB10--