资源简介
cmderFull 1.3.1,在公司下载好长时间,完整版的啦,共有80.6M
代码片段和文件信息
#!/usr/bin/python
#
# Server that will accept connections from a Vim channel.
# Run this server and then in Vim you can open the channel:
# :let handle = ch_open(‘localhost:8765‘)
#
# Then Vim can send requests to the server:
# :let response = ch_sendexpr(handle ‘hello!‘)
#
# And you can control Vim by typing a JSON message here e.g.:
# [“ex““echo ‘hi there‘“]
#
# There is no prompt just type a line and press Enter.
# To exit cleanly type “quit“.
#
# See “:help channel-demo“ in Vim.
#
# This requires Python 2.6 or later.
from __future__ import print_function
import json
import socket
import sys
import threading
try:
# Python 3
import socketserver
except ImportError:
# Python 2
import SocketServer as socketserver
thesocket = None
class ThreadedTCPRequestHandler(socketserver.baseRequestHandler):
def handle(self):
print(“=== socket opened ===“)
global thesocket
thesocket = self.request
while True:
try:
data = self.request.recv(4096).decode(‘utf-8‘)
except socket.error:
print(“=== socket error ===“)
break
except IOError:
print(“=== socket closed ===“)
break
if data == ‘‘:
print(“=== socket closed ===“)
break
print(“received: {0}“.format(data))
try:
decoded = json.loads(data)
except ValueError:
print(“json decoding failed“)
decoded = [-1 ‘‘]
# Send a response if the sequence number is positive.
# Negative numbers are used for “eval“ responses.
if decoded[0] >= 0:
if decoded[1] == ‘hello!‘:
response = “got it“
else:
response = “what?“
encoded = json.dumps([decoded[0] response])
print(“sending {0}“.format(encoded))
self.request.sendall(encoded.encode(‘utf-8‘))
thesocket = None
class ThreadedTCPServer(socketserver.ThreadingMixIn socketserver.TCPServer):
pass
if __name__ == “__main__“:
HOST PORT = “localhost“ 8765
server = ThreadedTCPServer((HOST PORT) ThreadedTCPRequestHandler)
ip port = server.server_address
# Start a thread with the server -- that thread will then start one
# more thread for each request
server_thread = threading.Thread(target=server.serve_forever)
# Exit the server thread when the main thread terminates
server_thread.daemon = True
server_thread.start()
print(“Server loop running in thread: “ server_thread.name)
print(“Listening on port {0}“.format(PORT))
while True:
typed = sys.stdin.readline()
if “quit“ in typed:
print(“Goodbye!“)
break
if thesocket is None:
print(“No socket yet“)
else:
print(“sending {0}“.format(type
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-19 09:27 bin\
文件 3502 2016-08-19 09:27 bin\alias.bat
文件 84 2016-08-19 09:27 bin\Readme.md
文件 65799 2016-08-19 09:27 CHANGELOG.md
文件 129536 2016-08-19 09:27 Cmder.exe
目录 0 2016-08-19 09:27 config\
文件 52973 2016-08-19 09:27 config\ConEmu.xm
文件 799 2016-08-19 09:27 config\Readme.md
文件 1784 2016-08-19 09:27 CONTRIBUTING.md
目录 0 2016-08-19 09:27 icons\
文件 18089 2016-08-19 09:27 icons\cmder.ico
文件 5272 2016-08-19 09:27 icons\cmder_blue.ico
文件 5193 2016-08-19 09:27 icons\cmder_green.ico
文件 5383 2016-08-19 09:27 icons\cmder_orange.ico
文件 5317 2016-08-19 09:27 icons\cmder_purple.ico
文件 4898 2016-08-19 09:27 icons\cmder_red.ico
文件 5227 2016-08-19 09:27 icons\cmder_yellow.ico
文件 10035 2016-08-19 09:27 README.md
目录 0 2016-08-19 09:27 vendor\
目录 0 2016-08-19 09:27 vendor\cli
目录 0 2016-08-19 09:27 vendor\cli
文件 16 2016-08-19 09:27 vendor\cli
文件 30 2016-06-11 06:00 vendor\cli
文件 195 2016-06-11 06:00 vendor\cli
文件 4849 2016-06-11 06:00 vendor\cli
文件 2946 2016-06-11 06:00 vendor\cli
文件 3022 2016-06-11 06:00 vendor\cli
文件 27397 2016-06-11 06:00 vendor\cli
文件 1083 2016-06-11 06:00 vendor\cli
目录 0 2016-06-11 06:00 vendor\cli
文件 591 2016-06-11 06:00 vendor\cli
............此处省略6077个文件信息
相关资源
- Trimble Scan Explorer Extension Setup 1.3.1.19
- FastReport VCL 6.7.11 D7-D10.3 Rio Full Source
- DevExpress VCL_19.1.2_full_source(Delphi 10.
-
Rali
nk_mt7620_MgmtRing_Full - SolarWinds-NPM-v12.1-Full官方完整版
- fullcalendar改造后插件
- win10安装twincat3文件,亲测不死机TC3
- firefoxFullscreen
- apr-util-1.3.12.tar.gz
- fullcalendar-3.9.0 日历控件
- DevExpress VCL 18.2.5 Full Sources and DxAutoI
- CTeX-2.4.6-Full.zip
- WinRing0-1.3.1b源代码
- axi_full.zip
- fullcalendar1.5.1 添加双击事件版本
- MiBOX2_2S_dredd_gitv_1.3.112d.2199.zip
- zw_fullcalendar-1.6.1.zip
- fullcalendar1.6.4版本
- fullcalendar-4.1.0.zip
- NI_数据交换规格书 NIMIF1.3.1便携类(代
- VMware-Workstation-Full-15.0.3-12422535.x86_64
- Unity PrefabEvolution1.3.10
- paho.mqtt.c-1.3.1
- Icompiocomp.v3.04.SP2.Full在VS2005环境下的应
- fullcalendar-3.4.0
- mobiscroll-2.13.2.full 包含css和js
- IEMOCAP_full_release_withoutVideos
- SLE-15-SP2-Full-x86_64-GM-Media2.iso
- ocra-1.3.1
- VMware-workstation-full-12.5.7-5813279
评论
共有 条评论