Deploy Comet Server in C #

I would like to know if there is a way to write a comet server in C #. I have C # code that periodically generates data, and I want to push this data to a java application. Therefore, I would like to convert my C # code to a comet server. I would also like to know if there is any comet server that allows us to connect a C # application and a java application to it so that a C # application can transmit information to a java application through a comet server. the data rate will be high, but the size of a single message is very small: a string value.

+6
java c # interop comet
source share
3 answers

Let me get it straight.

I assume this is a continuation of this question: the relationship between Java and C #

This application is for linking applications on the same machine with only strings as a payload, right?

Why comet? Why not just send null-terminated strings directly through a socket connection? The implementation of the Comet server is far from trivial and is used only in situations where a more direct connection is prohibited (i.e., From browser to browser). A comet for connecting applications with applications on one computer would be very difficult for a solution that is easily resolved using sockets.

+5
source share

This can be done, but writing a comet server in C # is a rather difficult task. We built one ( WebSync ), and it took a lot of effort. If you are just doing a research project, you can use the OnDemand version, which is hosted and has 10 free users. Now the server version is not free, but rather cheap ...

What is it worth if you decide to capsize your own, you will look at IHttpAsyncHandler, and you will need to do some flow control to deal with the default restrictions for a stream in IIS.

+3
source share

You may need some sample source code for your implementation? PokeIn reverse ajax library was an open source and open source project for earlier versions that can still be downloaded into codeplex .

Obviously, the latest version of the PokeIn library is one of the largest libraries for the .Net framework, and you can use their free community version.

+2
source share

All Articles