大约有 44,000 项符合查询结果(耗时:0.0532秒) [XML]
【内核源码】linux UDP实现 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术
【内核源码】linux UDP实现linux-udp创建udp socket在socket()创建的时候,会设置对应协议的操作集。 inet_dgram_ops是系统调用层直接调用的操作。udp_prot是底层协议的处理。可以看到相比TCP,UDP不用accept(),lis 创建udp socket
在socket()创建...
深入理解 x86/x64 的中断体系 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术
深入理解 x86/x64 的中断体系实模式下的中断机制中断向量表(IVT)改变中断向量表地址设置自己的中断服务例程保护模式下的中断机制查找 interrupt handler 入口IDT ...
实模式下的中断机制
中断向量表(IVT)
改变中断向量表地...
Uber5岁了,一次性告诉你它的商业之道 - 资讯 - 清泛网 - 专注C/C++及内核技术
Uber5岁了,一次性告诉你它的商业之道Uber5岁了,它具有一种迷人的魅力,并展现出颠覆世界既有规则的勇气。从诞生起,它就获得了巨大的支持与几乎同样多的反对,也经历着各种封...Uber5岁了,它具有一种迷人的魅力,并展现...
const char *, char const *, char * const 异同?const修饰符各位置有何区...
const char * p = new char('a'); 这个是常字符,即p的内容不能被修改。
char const * p 意义同上,没有区别。
这时,*p = 'c'; 会报错。
char * const p = new char('a'); 这个是常指针,即p指针本身不可被修改。
这时,p = new char; 会报...
Understanding slice notation
...t value that is not in the selected slice. So, the difference between stop and start is the number of elements selected (if step is 1, the default).
The other feature is that start or stop may be a negative number, which means it counts from the end of the array instead of the beginning. So:
a[-1]...
Socket 错误返回码详解 - C/C++ - 清泛网 - 专注C/C++及内核技术
Socket 错误返回码详解Socket error 0 - Directly send errorSocket error 10004 - Interrupted function callSocket error 10013 - Permission...Socket error 0 - Directly send error
Socket error 10004 - Interrupted function call
Socket error 10013 - Permission denied
Socket error 10014 - Bad ad...
Programmatically Lighten or Darken a hex color (or rgb, and blend colors)
...ecific amount. Just pass in a string like "3F6D2A" for the color ( col ) and a base10 integer ( amt ) for the amount to lighten or darken. To darken, pass in a negative number (i.e. -20 ).
...
内存管理内幕:动态分配的选择、折衷和实现 - C/C++ - 清泛网 - 专注C/C++及内核技术
内存管理内幕:动态分配的选择、折衷和实现linux-l-memory本文将对 Linux™ 程序员可以使用的内存管理技术进行概述,虽然关注的重点是 C 语言,但同样也适用于其他语言。文中将为您提供如何管理内存的细节,然后将进一步展示...
HSL to RGB color conversion
...(which he attributes to a now defunct mjijackson.com, but is archived here and the original author has a gist - thanks to user2441511).
The code is re-posted below:
HSL to RGB:
/**
* Converts an HSL color value to RGB. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_sp...
What is the best Battleship AI?
... is very large).
The GetShot algorithm has two parts, one which generates random shots and the other which
tries to finish sinking an already hit ship. We do random shots if there is a possible position (from the list above) in which all hit ships are sunk. Otherwise, we try to finish sinking a sh...