1、服务器端 1 import socket,os,hashlib 2 server=socket.socket() 3 server.bind(("localhost",9999)) # 绑定套接字 4 5 server.listen() # 服务器监听 6 """ 7 FTP 流程 8 1.读取 ...
分类:
其他好文 时间:
2020-10-29 09:20:17
阅读次数:
14
Vsocks are a means of providing socket communication (either stream or datagram) directly between VMs and their host operating system. The host and ea ...
分类:
其他好文 时间:
2020-10-24 10:17:20
阅读次数:
37
从C++角度来理解http请求协议 这里不会详细的介绍http里面的各个字段只会给大家介绍从C++ windows socket角度来理解http(会有很多经验分享哦 欢迎来辩 thanks) 目录 http简介 * http请求头 * http响应头 用列子来说明(windows socket) ...
分类:
编程语言 时间:
2020-10-22 22:25:13
阅读次数:
25
事件起因:在我用socket练习http响应时,网页显示英文是乱码 处理: 1、将网页文件用txt打开,另存为时改编码为utf-8,结果网页一直无法显示了 2、新建一个html文档就可以正常显示,怀疑html文档问题 3、对改了编码的文档进行研究发现,改成utf-8后文档开头多了一个“-”特殊符号, ...
分类:
其他好文 时间:
2020-10-21 21:33:02
阅读次数:
40
1.Socket和TCP/IP的关系 "All problems in computer science can be solved by another level of indirection." 为满足应用层需求,系统对TCP/IP层进行细节屏蔽和抽象,Socket层就相当于TCP/IP和应用 ...
分类:
系统相关 时间:
2020-10-21 21:04:10
阅读次数:
40
ZMQ简单使用 一 什么是ZMQ 引用官方的说法: “ZMQ (以下 ZeroMQ 简称 ZMQ)是一个简单好用的传输层,像框架一样的一个 socket library,他使得 Socket 编程更加简单、简洁和性能更高。是一个消息处理队列库,可在多个线程、内核和主机盒之间弹性伸缩。ZMQ 的明确目 ...
分类:
其他好文 时间:
2020-10-19 22:29:07
阅读次数:
27
第一个发送 public class May { public static void main(String[] args) {// 单线程程序 try { ServerSocket socket = new ServerSocket(2233);//端口号 Socket soc = socket ...
分类:
编程语言 时间:
2020-10-18 09:55:39
阅读次数:
31
后台服务 public class Server { public static void main(String[] args) throws IOException { ServerSocket s = new ServerSocket(1122);//服务器端口号 Socket ss = s. ...
分类:
编程语言 时间:
2020-10-18 09:52:35
阅读次数:
26
WebSocket is already in CLOSING or CLOSED state.
分类:
Web程序 时间:
2020-10-16 11:21:13
阅读次数:
49
WebSocket is already in CLOSING or CLOSED state.
分类:
Web程序 时间:
2020-10-16 11:11:21
阅读次数:
30