microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.38k stars 2.22k forks source link

Can I build normal TCP/UDP server and HTTP server and WebSocket in a single asp.net core application? #533

Closed 19317362 closed 6 years ago

19317362 commented 7 years ago

I've checked the document. HTTP and WebSocket in a single asp.net core is ready. Can I add TCP/UDP server in it? I want try Dotnetty + asp.net core.

Is this possiable?

richlander commented 6 years ago

PTAL @terrajobst @weshaggard

19317362 commented 6 years ago

I want try Dotnetty + asp.net core.

kulak commented 6 years ago

I have the same question. Theoretically it shall be possible.

terrajobst commented 6 years ago

@davidfowl @davidsh

davidsh commented 6 years ago

Can I build normal TCP/UDP server

What does "normal" mean in this context?

In term of a .NET Core application, one can certainly combine the various networking APIs for TCP/UDP, HTTP and WebSocket in a single application.

davidfowl commented 6 years ago

Yes you can do it in a single application there's no single application model that encompasses that. ASP.NET doesn't interact with dotnetty but you can certainly use both of them in the same application.

kulak commented 6 years ago

I agree. I just put a UDP listener and it works.

terrajobst commented 6 years ago

Closing as it seems we answered the question. @19317362 please free to reopen if we didn't.