如何在来宾帐户中监听套接字 [英] How to Listen Socket In guest Account

查看:103
本文介绍了如何在来宾帐户中监听套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

实际上,我正在尝试借助Socket和Port开发URl Listner(监控程序)应用程序.但是在Guest和Limited帐户中无法访问套接字或端口.因此,它在来宾和受限帐户中产生了问题.

所以请给我一些建议或替代品.



Thanks

Hello Everybody,

Actually i am trying to develop an Application for URl Listner (Monitor) with the help of Socket and Port. But in Guest and Limited account have not facility to access the socket or Port. So it generates the problem in Guest and Limited Account.

So Please give me Some Suggestion or Substitute for doing this job.



Thanks

推荐答案

Places a Socket in a listening state.

Namespace:  System.Net.Sockets
Assembly:  System (in System.dll)





public void Listen(
    int backlog
)







Listen causes a connection-oriented Socket to listen for incoming connection attempts. The backlog parameter specifies the number of incoming connections that can be queued for acceptance. To determine the maximum number of connections you can specify, retrieve the MaxConnections value. Listen does not block.

If you receive a SocketException, use the ErrorCode property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation in the MSDN library for a detailed description of the error. Use Accept or BeginAccept to accept a connection from the queue.


这篇关于如何在来宾帐户中监听套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆