Router Solicitation Message Source Address An IP address assigned to the sending interface, or the unspecified address if no address is assigned to th ...
分类:
其他好文 时间:
2018-04-29 18:42:44
阅读次数:
171
一、 android应用内消息传递的方式: 1. handler方式 不同线程间传递消息。 2. Interface接口回调方式 任意两个对象。 3. Intent进行组件间通信,广播方式。 二、单例比较好的写法: private static volatile EventBus defaultIn ...
分类:
其他好文 时间:
2018-04-29 16:22:20
阅读次数:
177
练习 8.3: 在netcat3例子中,conn虽然是一个interface类型的值,但是其底层真实类型是*net.TCPConn,代表一个TCP连接。一个TCP连接有读和写两个部分,可以使用CloseRead和CloseWrite方法分别关闭它们。修改netcat3的主goroutine代码,只关 ...
分类:
编程语言 时间:
2018-04-29 13:28:21
阅读次数:
175
后台spring mvc接收List参数报错如下:org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]: Specified class is an interface ...
分类:
编程语言 时间:
2018-04-28 19:30:45
阅读次数:
381
最简单的回声服务器: 原理: 1.io.Copy()方法func Copy(dst Writer, src Reader) (written int64, err error) 2.net.Conn类型type Conn interface { Read(b []byte) (n int, err ...
分类:
编程语言 时间:
2018-04-27 23:52:16
阅读次数:
218
/* 1.设置UI界面 2.引入框架 3.点击选择照片 4.连接蓝牙设备 5.实现蓝牙的代理方法 6.发送照片 */ #import "ViewController.h" #import @interface ViewController () @property (nonatomic, stron... ...
分类:
其他好文 时间:
2018-04-27 19:58:57
阅读次数:
181
//抽象出一个人的接口interface Person{ public function showInfo();}//继承于人的学生类class Student implements Person{ public function showInfo() { // TODO: Implement sh ...
分类:
Web程序 时间:
2018-04-27 19:44:45
阅读次数:
223
“实现多列内容的F4功能 REPORT Z_TAB_TEST. TYPES: shlp_descr TYPE shlp_descr . DATA: BEGIN OF itab OCCURS 0 , matnr LIKE mara-matnr , maktx LIKE makt-maktx , END ...
分类:
其他好文 时间:
2018-04-27 17:51:37
阅读次数:
548
stackoverflow有人问了这么一个问题,下面这段程序执行完毕后,malloc的内存会释放吗 [cpp] view plain copy <span style="font-size:18px;">int main () { int *p = malloc(10 * sizeof *p); * ...
分类:
其他好文 时间:
2018-04-27 13:35:04
阅读次数:
208
WindowManager是一个接口,如下: 它的Nested Classes有三个分别是: 这里主要看一下 WindowManager.LayoutParams 这个类 从源码中我们可以看到这个类的继承实现关系,虽然有2000+行的代码(即WindowManager这个interface 的大部分 ...