简体   繁体   中英

Is it possible to send TCP message using Webservices Asp.net or need WCF

I need to develop a WebSevice which takes its input and forwards this input using TCP.

Is it possible for Asp.net Webservices ? Or Should I use WCF etc..

I have to know if it is possible to create a web service that should be like a bridge between the two: it waits for an incoming request, forwards it to the required TCP port.

Simple samples are always welcome :)

I think Asp.net is possible to use TCP , but I think you should use WCF.
This will give you most things 'out of the box' (serialize /deserialize, open/close socket )

There are good examples here , here and good reading here

我使用了示例项目,它确实有效。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM