wcf获取客户端IP,端口 var context = OperationContext.Current; var properties = context.IncomingMessageProperties; //获取传进的消息属性 var endpoint = properties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; //获取消息发送的远程终结点IP和端口 string UserLogin
mysql 启动了,用 localhost 可以连接,但是用 127.0.0.1 不能连接.可能的原因是 1. mysql为了增强安全性而跳过了端口监听,查看方法: 用mysql> SHOW VARIABLES;或者 mysql> SHOW VARIABLES LIKE 'skip_networking'; 查看skip_networking,如果skip_networking=ON ,则到my.ini 中将 skip_networking 注释掉; 2. 如果显示的是 OFF 则可能是绑定了
#encoding=utf-8 from threading import Thread from multiprocessing import Process import multiprocessing ''' Author liuyancong ''' class My_Job_With_Thread(Thread): def run(self): t_flag = True b = None try: b = self._Thread__target(*self._Thread__arg