UNP Chapter 2 - 传输层:TCP和UDP

本文深入解析了TCP/IP协议体系中的关键组件,包括UDP和TCP协议的功能、TCP连接的建立与终止、TIME_WAIT状态、端口号使用、并发服务器的管理以及缓冲区大小限制等核心概念,为读者提供了一站式的理解框架。

2.1. 概述

2.2. 总图

2.3. UDP:用户数据报协议

2.4. TCP:传输控制协议

2.5. TCP连接的建立和终止

2.6. TIME_WAIT状态

2.7. 端口号

2.8. TCP端口号与并发服务器

2.9. 缓冲区大小及限制

2.10. 标准因特网服务

转载于:https://www.cnblogs.com/s7vens/archive/2011/12/14/2287942.html

SWAP_AK : appLruQueue: [com.taobao.taobao, com.d2956987215.mow, com.jingdong.app.mall, com.huawei.wallet, com.netease.cloudmusic, com.haier.uhome.uplus, com.huawei.photos, com.lingan.seeyou, com.xunmeng.pinduoduo, com.eg.android.AlipayGphone, com.phoenix.read, com.huawei.android.totemweather, com.huawei.magazine, com.sinovatech.unicom.ui, com.huawei.deskclock, com.huawei.calculator, com.ss.android.ugc.aweme, com.huawei.contacts ... 行 13496: 10-16 19:09:53.824 1889 2996 I system_server: com.huawei.photos 行 13623: 10-16 19:09:53.868 3419 4032 I PG_ash : pkg com.huawei.camera calling: com.huawei.photos, pid: -1 ,type: acquire_provider 行 13624: 10-16 19:09:53.868 3419 4032 I PG_ash : com.huawei.photos is called by front app, H to R 行 13625: 10-16 19:09:53.868 1889 13682 I ContentProviderHelper: Successfully start provider ContentProviderRecord{9d93e0a u0 com.huawei.photos/com.huawei.gallery.provider.GalleryProviderForCamera} launchingApp=ProcessRecord{c5a4e75 815:com.huawei.photos/u0a190} caller pid= 775 行 13625: 10-16 19:09:53.868 1889 13682 I ContentProviderHelper: Successfully start provider ContentProviderRecord{9d93e0a u0 com.huawei.photos/com.huawei.gallery.provider.GalleryProviderForCamera} launchingApp=ProcessRecord{c5a4e75 815:com.huawei.photos/u0a190} caller pid= 775 行 13626: 10-16 19:09:53.868 3419 4032 I ash_trans: com.huawei.photos { hibernation duration=117278 Uptime=73567 } transition to: running reason:be_called_acquire_provider 行 13630: 10-16 19:09:53.868 1889 2825 I AppStateTracker: mRunAnyRestrictedPackages.indexOf return = -6,uid = 10190,packageName = com.huawei.photos 行 13632: 10-16 19:09:53.868 1889 2825 I AppStateTracker: mRunAnyRestrictedPackages.indexOf return = -6,uid = 10190,packageName = com.huawei.photos 行 13641: 10-16 19:09:53.872 3419 4032 I PG_ash : CancelNetworkRestrict >> com.huawei.photos, uids : [10190] 行 13647: 10-16 19:09:53.876 3419 4032 I PGServer: report state:6 event type:2 pid:0 uid:10190 pkg:com.huawei.photos to pid: 1889 行 13649: 10-16 19:09:53.877 3419 4032 I PG_ash : unF_Z com.huawei.photos OK ! 行 13650: 10-16 19:09:53.877 1889 2857 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:UNFREEZE pkg:com.huawei.photos uid:10190 pid:0 proc: activity:null 行 13651: 10-16 19:09:53.878 1889 2857 I PGManagerService: proxyBroadcast:[com.huawei.photos] proxy:false 行 13656: 10-16 19:09:53.881 3419 4032 I PG_ash : unP_BC com.huawei.photos OK ! 行 13659: 10-16 19:09:53.882 3419 4032 I PG_ash : cancel unified HB com.huawei.photos pkgs: [com.huawei.photos] 行 13659: 10-16 19:09:53.882 3419 4032 I PG_ash : cancel unified HB com.huawei.photos pkgs: [com.huawei.photos] 行 13662: 10-16 19:09:53.883 3419 4032 I PG_ash : cancel unified com.huawei.photos H_B reason: left H 行 13663: 10-16 19:09:53.883 3419 4032 I PG_ash : Unpending H_B com.huawei.photos pkgs: [com.huawei.photos] 行 13663: 10-16 19:09:53.883 3419 4032 I PG_ash : Unpending H_B com.huawei.photos pkgs: [com.huawei.photos] 行 13666: 10-16 19:09:53.884 3419 4032 I PG_ash : Unpending com.huawei.photos H_B OK ! 行 13670: 10-16 19:09:53.884 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: launcher visibility:0data change:false 行 13672: 10-16 19:09:53.884 1889 2857 I 00400/GpsFreezeProc: removeFreezeProcess packageName:com.huawei.photos 行 13678: 10-16 19:09:53.885 1889 2857 I PGManagerService: unproxy gps com.huawei.photos 10190 success 行 13680: 10-16 19:09:53.885 3419 4032 I PG_ash : unP_gps com.huawei.photos OK ! 行 13684: 10-16 19:09:53.885 3419 4032 I PG_ash : running package: com.huawei.photos, visible: false 行 13688: 10-16 19:09:53.885 3419 4032 I PG_ash : com.huawei.photos BinderCallState: true, nextBinderCallTriggeringTime:117063843 行 13699: 10-16 19:09:53.891 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: launcher visibility:0data change:false 行 13738: 10-16 19:09:53.908 775 775 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13739: 10-16 19:09:53.908 775 775 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13740: 10-16 19:09:53.912 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13741: 10-16 19:09:53.912 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13779: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13780: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13781: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13782: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14083: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14084: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14085: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14086: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14114: 10-16 19:09:53.971 775 797 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14115: 10-16 19:09:53.971 775 797 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14141: 10-16 19:09:53.974 775 5753 W MemoryScene: report error when openCameraWithPhotoMode by scene 0, map is null 行 14336: 10-16 19:09:53.993 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14337: 10-16 19:09:53.993 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 15293: 10-16 19:09:54.391 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: handleMessage what:54 bucketId:null 行 15675: 10-16 19:09:54.886 3419 4032 I PG_ash : com.huawei.photos not check download condition with no dl requisites 行 15676: 10-16 19:09:54.886 3419 4032 I AppManager: ignore audio by app type, app : com.huawei.photos, type : 16 行 15677: 10-16 19:09:54.886 3419 4032 I PG_ash : cannot care audio: com.huawei.photos 行 15678: 10-16 19:09:54.886 3419 4032 I ash_trans: com.huawei.photos { running duration=1001 Uptime=1001 } transition to: doze reason:app_type_gallery unknown_state 行 15679: 10-16 19:09:54.886 3419 4032 I APwPowerPolicy: one day not front to ignore gps: com.huawei.photos 行 15680: 10-16 19:09:54.886 3419 4032 I PG_ash : perform_nap P_GPS : com.huawei.photos 行 15681: 10-16 19:09:54.886 3419 4032 I PG_ash : perform_nap set bgcheck : com.huawei.photos 行 15683: 10-16 19:09:54.887 1889 14378 I 00400/GpsFreezeProc: addFreezeProcess packageName:com.huawei.photos 行 15684: 10-16 19:09:54.889 1889 14378 I PGManagerService: proxy gps com.huawei.photos 10190 success 行 15685: 10-16 19:09:54.889 3419 4032 I PG_ash : P_GPS com.huawei.photos OK ! 行 15686: 10-16 19:09:54.889 3419 4032 I PG_ash : set bgcheck com.huawei.photos OK ! 行 15687: 10-16 19:09:54.889 3419 4032 I PG_ash : nap package: com.huawei.photos, visible: false, bgTime: 198748, scrOff: false 根据这段日志分析,为什么手机相机点击了无响应,不拍照,重新亮灭屏一次之后就好了
10-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值