网络

java初学者笔记

学习新技术栈新框架,花最大力气的部分往往不是写代码,而是搭建开发和运行环境 安装java环境 安装maven wget https://apache.website-solution.net/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz tar xf apache-maven-3.6.3-bin.tar.gz -C /opt ln -s /opt/apache-maven-3.6.3 /opt/maven # 加入环境变量 vim /etc/profile.d/maven.sh export M2_HOME=/opt/maven export MAVEN_HOME=/opt/maven export PATH=${M2_HOME}/bin:${PATH} 安装java 11 mkdir /home/source cd /home/source # 下载地址需要去java官网获取,简直无力吐槽,下载个java还需要登录,你妹的 wget https://download.oracle.com/otn/java/jdk/11.0.9+7/eec35ebefb3f4133bd045b891f05db94/jdk-11.0.9_linux-x64_bin.tar.gz?AuthParam=160983785...

Socket的11种状态

Socket的11种状态 Socket状态汇总 客户端 SYN_SEND FIN_WAIT1 FIN_WAIT2 CLOSING TIME_WAIT 服务器 LISTEN SYN_RECV CLOSE_WAIT LAST_ACK 共有 CLOSED ESTABLISHED

SS-windows源码分析[2]-如何添加代理服务器

介绍 本系列文章介绍请看:概述 本文旨在搞清楚以下问题: 代理服务器配置管理,添加,删除,修改,获取 加载服务器列表 Call Stack /View/ConfigForm.cs: ConfigForm::ConfigForm -> ConfigForm::LoadCurrentConfiguration -> ConfigForm::LoadServerNameListToUI private void LoadCurrentConfiguration() { _modifiedConfiguration = controller.GetConfigurationCopy(); LoadServerNameListToUI(_modifiedConfiguration); _lastSelectedIndex = _modifiedConfiguration.index; if (_lastSelectedIndex < 0 || _lastSelectedIndex >= ServersListBox.Items.Count) { _lastSelectedIndex = 0; } ServersListBox.SelectedIndex = _lastSelected...

SS源码分析[0]-概述

介绍 shadowsocks-windows是个什么东西我在这里不多说,纯粹研究目的,也没有别的意思。 github项目地址:https://github.com/shadowsocks/shadowsocks-windows 结构 本系列文章将从几方面来解析shadowsocks-windows项目源代码 [0] 概述,本文 [1] 代理服务器配置是如何管理的? [2] 代理服务是如何启动监听和停止监听的? [3] 通信协议是怎么工作的?

SS-windows源码分析[3]-shadowsocks和privoxy的关系以及协作方式

介绍 什么是privoxy 项目地址:https://github.com/unisx/privoxy 文档地址:http://www.privoxy.org/user-manual/quickstart.html 官网上是这么介绍Privoxy的, Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks. privoxy是一个无缓存的浏览器代理,带有高级的过滤功能,可用于提升隐私安全性,修改网页数据和HTTP头,控制访问,去除广告和其他令人恶心的内容。 读到这里发现shadowsock...

SS-windows源码分析[1]-代理服务器配置是如何管理的

介绍 本系列文章介绍请看:概述 本文旨在搞清楚以下问题: 代理服务器数据结构 数据结构 代理服务器管理界面 代理服务器数据结构 代码位置Model/Server.cs namespace Shadowsocks.Model { [Serializable] public class Server { #region ParseLegacyURL public static readonly Regex UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>\S+))?", RegexOptions.IgnoreCase), DetailsParser = new Regex(@"^((?<method>.+?):(?<password>.*)@(?<hostname>.+?):(?<port>\d+?))$", RegexOptions.IgnoreCase); #endregion ParseLegacyURL private const int DefaultServ...
执行时间: 1714104023008.7 毫秒