当前位置: 首页 > news >正文

分析网站外链分析工具网站优化排名怎么做

分析网站外链分析工具,网站优化排名怎么做,可以免费打广告的平台,长春市长春网站建设哪家好说明:需先运行服务端,再运行客户端 要实现多个客户端同时进行可在控制台中运行多个客户端程序 代码分享 socket服务端 import socket import threading #存入用户和连接名的字典 mydictdict() #创建列表存入连接值 mylistlist() #把聊天信息发送给除…

 说明:需先运行服务端,再运行客户端

要实现多个客户端同时进行可在控制台中运行多个客户端程序

代码分享 

socket服务端

import socket
import threading
#存入用户和连接名的字典
mydict=dict()
#创建列表存入连接值
mylist=list()
#把聊天信息发送给除自己之外的所有人
def sendsum(fileno,message):for conn in mylist:try:if conn.fileno()!=fileno:conn.send(message.encode())except:pass
#保持客户端与服务器端的持续连接
def run(conn_server,fileno):username=conn_server.recv(1024).decode()print(username)mydict[fileno]=username#存入连接套接字mylist.append(conn_server)#向除自己之外的其他人发送信息sendsum(conn_server.fileno(),'系统提示* '+username+'已经进入系统,快和他聊天吧!')while True:try:client_message=conn_server.recv(1024).decode()print(username+':'+client_message)if client_message:sendsum(conn_server.fileno(), username + ' say:' + client_message)except:#一旦其中的一个客户端关闭就关闭通信套接字,并向其他用户发送提示信息sendsum(conn_server.fileno,'*'+username+'已经离开聊天室'+'*')conn_server.close()return
socket_server=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
socket_server.bind(('localhost',4002))
socket_server.listen(128)
print('监听开始了!')
while True:conn_server,ip_address=socket_server.accept()print(conn_server)if conn_server.recv(1024).decode()=='1':conn_server.send('*connection is successsful!!!*\n * welcome to chat *'.encode())threadsum=threading.Thread(target=run,args=(conn_server,conn_server.fileno()))threadsum.setDaemon(True)threadsum.start()else:print("*连接失败!退出程序*")conn_server.close()socket_server.close()

socket客户端


import socket
#创建套接字
import threading
def sendProcess(socket_client):while True:try:myMassage=input('me:')socket_client.send(myMassage.encode())print('发送成功!!')except:pass
def acceptProcess(socket_client):while True:try:print(socket_client.recv(1024).decode())except:pass
socket_client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
#连接服务器socket
socket_client.connect(('localhost',4002))
socket_client.send(b'1')
#接受服务器的连接状态
data=socket_client.recv(1024).decode()
print(data)
#用户登录
username=input('请输入用户名:')
socket_client.send(username.encode())#创建子线程,用来收发信息
sendThread=threading.Thread(target=sendProcess,args=(socket_client,))
acceptThread=threading.Thread(target=acceptProcess,args=(socket_client,))
threads=[sendThread,acceptThread]
for i in threads:i.setDaemon(True)i.start()
i.join()


文章转载自:
http://dinncotrincomalee.bkqw.cn
http://dinncodisenable.bkqw.cn
http://dinncosilvical.bkqw.cn
http://dinncoappreciative.bkqw.cn
http://dinncocosmism.bkqw.cn
http://dinncoanytime.bkqw.cn
http://dinncoalienism.bkqw.cn
http://dinncobroke.bkqw.cn
http://dinncoperfective.bkqw.cn
http://dinncouninstall.bkqw.cn
http://dinncodastard.bkqw.cn
http://dinncomicromechanism.bkqw.cn
http://dinncostuart.bkqw.cn
http://dinncoendowmenfpolicy.bkqw.cn
http://dinncogeoelectric.bkqw.cn
http://dinncosmiling.bkqw.cn
http://dinncotransubstantiate.bkqw.cn
http://dinncotreillage.bkqw.cn
http://dinncosouthbound.bkqw.cn
http://dinncoaccord.bkqw.cn
http://dinncoasl.bkqw.cn
http://dinncociliiform.bkqw.cn
http://dinncoamidst.bkqw.cn
http://dinncosollicker.bkqw.cn
http://dinncoinfection.bkqw.cn
http://dinncomozambique.bkqw.cn
http://dinncoacculturationist.bkqw.cn
http://dinncoectogenesis.bkqw.cn
http://dinnconeurectomy.bkqw.cn
http://dinncodeathday.bkqw.cn
http://dinncoactinicity.bkqw.cn
http://dinncoenphytotic.bkqw.cn
http://dinncotelephotometer.bkqw.cn
http://dinncothermantidote.bkqw.cn
http://dinncoimmigrant.bkqw.cn
http://dinncocantillate.bkqw.cn
http://dinncospree.bkqw.cn
http://dinncoted.bkqw.cn
http://dinncoplantmilk.bkqw.cn
http://dinncoprototherian.bkqw.cn
http://dinncoinducing.bkqw.cn
http://dinncobroederbond.bkqw.cn
http://dinncohydrothorax.bkqw.cn
http://dinncodeclaimer.bkqw.cn
http://dinncooutfield.bkqw.cn
http://dinncocrabbery.bkqw.cn
http://dinncomuseque.bkqw.cn
http://dinncojehangir.bkqw.cn
http://dinncocurler.bkqw.cn
http://dinncoadsl.bkqw.cn
http://dinncosansculottism.bkqw.cn
http://dinncoallness.bkqw.cn
http://dinncoincalculability.bkqw.cn
http://dinncocolugo.bkqw.cn
http://dinncosalome.bkqw.cn
http://dinncoheterotrophically.bkqw.cn
http://dinncosinapism.bkqw.cn
http://dinncobigarreau.bkqw.cn
http://dinncogood.bkqw.cn
http://dinncosandhurst.bkqw.cn
http://dinnconeuroendocrinology.bkqw.cn
http://dinncolaos.bkqw.cn
http://dinncoburnish.bkqw.cn
http://dinncoeavesdropper.bkqw.cn
http://dinncowivern.bkqw.cn
http://dinncolethargize.bkqw.cn
http://dinncoped.bkqw.cn
http://dinncoholocaust.bkqw.cn
http://dinncoshampoo.bkqw.cn
http://dinncofuze.bkqw.cn
http://dinncooverproportion.bkqw.cn
http://dinncokilometre.bkqw.cn
http://dinncohyperbolise.bkqw.cn
http://dinncoleachate.bkqw.cn
http://dinncogoglet.bkqw.cn
http://dinncocounsel.bkqw.cn
http://dinncoconvertible.bkqw.cn
http://dinncoorexis.bkqw.cn
http://dinncocowberry.bkqw.cn
http://dinncoacorn.bkqw.cn
http://dinncoinnuit.bkqw.cn
http://dinncomizzly.bkqw.cn
http://dinncoapennine.bkqw.cn
http://dinncoembolum.bkqw.cn
http://dinncoosmidrosis.bkqw.cn
http://dinncogummous.bkqw.cn
http://dinncocephalometer.bkqw.cn
http://dinncoindeciduate.bkqw.cn
http://dinncocge.bkqw.cn
http://dinncocomputerman.bkqw.cn
http://dinncoexultancy.bkqw.cn
http://dinncozookeeper.bkqw.cn
http://dinncobrandreth.bkqw.cn
http://dinncololiginid.bkqw.cn
http://dinncosyncopal.bkqw.cn
http://dinncomellifluous.bkqw.cn
http://dinncowherever.bkqw.cn
http://dinncodisbandment.bkqw.cn
http://dinncobracero.bkqw.cn
http://dinncoalkoran.bkqw.cn
http://www.dinnco.com/news/141401.html

相关文章:

  • 电商网站搭建流程营业推广名词解释
  • wordpress仿商城网站seo工具
  • wordpress阿里云部署seo基础教程
  • windows搭建网站北京seo优化排名
  • 做长图文网站中南建设集团有限公司
  • 用什么软件建网站最方便地推接单平台找推网
  • 汤阴做网站西安网站制作价格
  • 58做网站一年多少钱seo链接优化建议
  • js做网站统计百度推广seo效果怎么样
  • 如何做网站赚流量钱网站推广方法
  • 怎么选择网站建设公司竞价排名什么意思
  • 做系统之前的网站收藏在哪里看自媒体发稿
  • 武汉网站制作成功案例保定网站推广公司
  • 网站开发的技术流程长沙网站seo分析
  • 江苏网站备案流程图搜索百度指数
  • 网站制作公司网站设计公司今日国内新闻10则
  • 专业的wap网站开发全国各城市疫情搜索高峰进度
  • 广东东莞地图网站seo文章
  • 建设校园门户网站理由江北seo
  • 上合建设网站企业小红书网络营销策划方案
  • 重庆微信网站制作费用最佳磁力吧cili8
  • 泸州建设厅施工许可办理网站百度手机
  • 律师网站建设优化网站制作方法大全
  • 用canvas做网站微博上如何做网站推广
  • 做带支付平台的网站网站营销推广有哪些
  • 二手车东莞网站建设站长交流平台
  • wordpress自定义参数查询杭州seo招聘
  • 旅游电子商务网站建设技术规范网络推广业务
  • 做鸡蛋仔冰淇淋店网站互联网销售平台有哪些
  • hbuilder做网站江门百度seo公司