简体   繁体   English

启动后立即为Windows 8创建Windows服务以使用TCP / IP

[英]Creating a Windows Service for Windows 8 to use TCP/IP as soon as booted

On other windows operating systems, I could create a Windows Service that listens to TCP/IP for any communication (like a PBX for example) through sockets. 在其他Windows操作系统上,我可以创建一个Windows服务,该服务通过套接字侦听TCP / IP进行的任何通信(例如PBX)。

But, how would i handle this in Windows 8? 但是,我将如何在Windows 8中处理此问题? Applications can't run there all the time and when Windows 8 Metro starts up, applications for the normal desktop aren't running. 应用程序不能一直在那里运行,并且当Windows 8 Metro启动时,普通桌面的应用程序也无法运行。

I need this service to start up all the time in any situation as soon as the computer starts up... 在任何情况下,只要计算机启动,我都需要此服务才能一直启动...

I also need http://pcapdotnet.codeplex.com an open source project to analyze the network... 我还需要http://pcapdotnet.codeplex.com一个开源项目来分析网络...

What's the best future proof practice in an enterprise environment? 在企业环境中最佳的面向未来的实践是什么?

I don't have any Windows 8 experience on me yet. 我还没有任何Windows 8体验。

Try this: If you make your windows service depend on something like the computer browser or could be the workstation service. 尝试以下操作:如果使Windows服务依赖于诸如computer browser类的东西,或者可能是workstation服务。 The net connection should be up then. 然后,网络连接应该建立。

You have to code this dependency in (no sample on hand). 您必须对此依赖性进行编码(手头没有示例)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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