摘要:
在STUN Header 之后是零个或多个属性。 每个属性必须经过TLV编码,并具有16位类型Type,16位长度Length和一个可变长度值Value。每个STUN属性必须以32位边界结束。属性中的所有字段(Tyep、Length/Value)都首先发送最高有效位,即大端字节序。 在填充之前,Le
阅读全文
posted @ 2020-08-07 19:59
一骑红尘妃子笑!
阅读(965)
推荐(0)
摘要:
#include <stdio.h> #include <stdint.h> uint16_t stun_make_type(uint16_t method) { method = method & 0x0FFF; return ((method & 0x000F) | ((method & 0x0
阅读全文
posted @ 2020-08-07 14:28
一骑红尘妃子笑!
阅读(395)
推荐(0)
摘要:
#include <stdio.h> #define UNUSED_ARG(A) do { A=A; } while(0) void Hello(int key,int value){ printf("key:%d\n",key); } int main(){ Hello(100,200); ret
阅读全文
posted @ 2020-08-06 15:52
一骑红尘妃子笑!
阅读(452)
推荐(0)
摘要:
#include <stdio.h> #include <stdint.h> #include <openssl/rand.h> #include <stdlib.h> #include <math.h> #include <strings.h> static void turn_random_ti
阅读全文
posted @ 2020-08-06 15:03
一骑红尘妃子笑!
阅读(533)
推荐(0)
摘要:
void printf_addr_byte(void * addr,uint32_t bytes){ if (!addr){ printf("addr is null!"); exit(0); } if (bytes <= 0){ printf("len <= 0!"); } uint8_t * c
阅读全文
posted @ 2020-08-06 14:31
一骑红尘妃子笑!
阅读(182)
推荐(0)
摘要:
题目描述: 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的 连续 子数组,并返回其长度。如果不存在符合条件的子数组,返回 0。 示例: 输入:s = 7, nums = [2,3,1,2,4,3] 输出:2 解释:子数组 [4,3] 是该条件下的长度最
阅读全文
posted @ 2020-08-02 10:15
一骑红尘妃子笑!
阅读(188)
推荐(0)
摘要:
题目描述 给你一个由 '1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。岛屿总是被水包围,并且每座岛屿只能由水平方向或竖直方向上相邻的陆地连接形成。此外,你可以假设该网格的四条边均被水包围。 示例1: 输入 : [['1','1','1','1','0'],['1','1',
阅读全文
posted @ 2020-08-01 08:37
一骑红尘妃子笑!
阅读(286)
推荐(0)
posted @ 2020-07-31 09:57
一骑红尘妃子笑!
阅读(402)
推荐(0)
posted @ 2020-07-31 09:19
一骑红尘妃子笑!
阅读(289)
推荐(0)
摘要:
MediaStreamTrack接口的applyConstraints()方法的作用是向轨道应用一组约束。 这些约束使网站或应用程序可以为轨道的可约束属性(例如帧频,尺寸,回声消除等)建立理想值和可接受的范围值。 约束可用于确保媒体符合您喜欢的某些准则。 例如,您可能更喜欢高清视频,但要求帧速率稍低
阅读全文
posted @ 2020-07-31 09:16
一骑红尘妃子笑!
阅读(1838)
推荐(1)