TCP创建socket:1 int socket(int domain, int type, int protocol);AF = Address FamilyPF = Protocol FamilyAF_INET IPv4 Internet protocols ip(7)AF_INET6 IPv6...
分类:
其他好文 时间:
2014-07-08 22:39:05
阅读次数:
352
套接字是通信端点的抽象。文件描述符用open函数创建,而套接字描述符用socket函数创建。socket函数原型如下:
int socket(int domain, int type, int protocol);
// 返回值:成功返回套接字描述符,失败返回-1
domain域确定通信特性,不同的域表示地址的格式不同,表示域的常数以AF开头,表示地址族(address family)...
分类:
系统相关 时间:
2014-07-08 16:34:18
阅读次数:
333
默认交叉编译器已经搭建好。。。。。。。。。。。。。。。
需求:
把标准的h264流保存成avi格式的实现文件,所以需要h264的解码器,avi文件容器,传输协议类型是文件,这些会体现在ffmpeg的configure配置上--disable-everything --enable-protocol=file --enable-encoder=libx264 --enable-encoder=l...
分类:
其他好文 时间:
2014-07-08 15:16:30
阅读次数:
865
TCP(Transmission Control Protocol) 传输控制协议TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:位码即tcp标志位,有6种标示: SYN(synchronous建立联机) ...
分类:
其他好文 时间:
2014-07-08 00:21:03
阅读次数:
323
1、OSI(Open System Interconnect):开放系统互联,是一个七层的计算机网络模型,分别为:物理层、数据链路层、网络层、传输层、会话层、表示层和应用层。TCP/IP(Transmission Control Protocol/Internet Protocol):传输控制协议/...
分类:
其他好文 时间:
2014-07-07 09:44:42
阅读次数:
221
In a fast local area network (LAN) environment, Transmission Control Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients are comparabl...
分类:
其他好文 时间:
2014-07-06 20:39:21
阅读次数:
315
怎样在同一系统中启动多个 TOMCAT
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
http请求处理端口,我们在网页上输入的...
分类:
其他好文 时间:
2014-07-06 12:24:04
阅读次数:
239
Protocol Buffers(简称protobuf)是谷歌的一项技术,用于将结构化的数据序列化、反序列化,经常用于网络传输。
这货实际上类似于XML生成和解析,但protobuf的效率高于XML,不过protobuf生成的是字节码,可读性比XML差。类似的还有json、Java的Serializable等。
protobuf支持各种语言。本文以Java为例,简单介绍protobuf如何使用。其他语言使用方法类似。...
分类:
编程语言 时间:
2014-07-04 08:41:47
阅读次数:
370
ICMP协议1、ICMP简介ICMP全名为(INTERNET CONTROL MESSAGE PROTOCOL)网络控制消息协议。 ICMP的协议号为1。ICMP报文就像是IP报文的小弟,总顶着IP报文的名头出来混。因为ICMP报文是在IP报文内部的,如图:图:IP数据报2、ICMP类型 ICMP报...
分类:
其他好文 时间:
2014-07-03 20:40:47
阅读次数:
332
This guide explains how you can set up an iSCSI target and an iSCSI initiator (client), both running Ubuntu 10.04. The iSCSI protocol is a storage are...
分类:
其他好文 时间:
2014-07-02 17:22:37
阅读次数:
236