Home > Net >  How to use asp.net to receive TCP data
How to use asp.net to receive TCP data

Time:10-17

I want to write a page in asp.net can receive real-time microcontroller sending data, single-chip microcomputer with GPRS module to send data (using the TCP protocol), with what method can monitor a port data real-time access to it, now with sokit tested can be communication, the couple only few points

CodePudding user response:

Do write website and TCP services together also can
You in initializing up a TcpListener

CodePudding user response:

Asp.net can't write.. This is all based on the service short connect HTTP long link not achieve them.


This is what we call the socket using c # socket or tcplistener can realize website that is not sure. But you wrote

You can do the test first write an exe implementation after transplantation to winservice

As for you want to "real-time" you need other way such as you receive the data inserted into a database or your compatible websocket protocol TCP service.

Then web service receives data connection service for transit can be so

CodePudding user response:

Websocket is something new, TCP is old things

So this itself is a pain points, usually I personally write directly forward agent, but if you can't write this agent to forward it doesn't matter,
I believe that no new under the sun, so since this is the pain they solve

https://www.npmjs.com/package/websocket2tcpsocket/v/1.0.3

Ps: this article also said, in fact the git on many websocket proxy agent
  • Related