Re:Building a BitTorrent client from scratch in C#
by lossolo on Tuesday July 05, 2016 @07:55AM
(#12035758)
Great work. Does it work under .NET Core ?
[ Parent
| on HN ]
Re:Building a BitTorrent client from scratch in C#
by jsingleton on Tuesday July 05, 2016 @08:04AM
(#12035799)
From a quick look at the source [0], it looks like it supports Mono. I can't see anything stopping it being ported to Core, apart from JonSkeet.MiscUtil may not support Core.
If you package this up as a NuGet package and support Core then can you please ping me and I'll add it to https://anclafs.com.
Re:Building a BitTorrent client from scratch in C#
by nick_ on Tuesday July 05, 2016 @07:46PM
(#12040309)
I've been prototyping a .NET Core port. JonSkeet.MiscUtil source code is fine for Core, but for the BitTorrent code we need to change the HttpWebRequest objects to HttpClient and rewrite the Begin/End/IAsyncResult/callback-style to async/await.
Re:Building a BitTorrent client from scratch in C#
by jsingleton on Thursday July 07, 2016 @01:58PM
(#12051010)
FYI Jon has said to avoid using MiscUtil.
https://github.com/jpsingleton/ANCLAFS/issues/6#issuecomment...
Re:Building a BitTorrent client from scratch in C#
by cheatdeath on Tuesday July 05, 2016 @08:16AM
(#12035854)
I'm not that familiar with .NET Core. It doesn't look like MiscUtil is compatible with it.
The executable project has some minor references to Mono.Posix just so it can catch kill signals while running in the Terminal and die gracefully.
Both dependencies can be removed quite easily from the project.