Description: linux/unix下使用unix域套接字通信与使用共享内存+信号量通信方式的用时测试比较代码。-linux/unix use unix domain socket communication and the use of shared memory+ semaphore method of communication when the test code. Platform: |
Size: 2048 |
Author: |
Hits:
Description: 用于进程间通信的unix域socket使用示例,同时包含了对通信效率的计时。-For inter-process communication using unix domain socket example, at the same time contains the time of the communication efficiency. Platform: |
Size: 1024 |
Author:紫日土 |
Hits:
Description: 用VC++6.0的Sockets API实现一个聊天室程序.txt
VC++对网络编程的支持有socket支持,WinInet支持,MAPI和ISAPI支持等。其中,Windows Sockets API是TCP/IP网络环境里,也是Internet上进行开发最为通用的API。最早美国加州大学Berkeley分校在UNIX下为TCP/IP协议开发了一个API,这个API就是著名的Berkeley Socket接口(套接字)。在桌面操作系统进入Windows时代后,仍然继承了Socket方法。在TCP/IP网络通信环境下,Socket数据传输是一种特殊的I/O,它也相当于一种文件描述符,具有一个类似于打开文件的函数调用-socket()。可以这样理解:Socket实际上是一个通信端点,通过它,用户的Socket程序可以通过网络和其他的Socket应用程序通信。Socket存在于一个"通信域"(为描述一般的线程如何通过Socket进行通信而引入的一种抽象概念)里,并且与另一个域的Socket交换数据。Socket有三类。第一种是SOCK_STREAM(流式),提供面向连接的可靠的通信服务,比如telnet,http。第二种是SOCK_DGRAM(数据报),提供无连接不可靠的通信,比如UDP。第三种是SOCK_RAW(原始),主要用于协议的开发和测试,支持通信底层操作,比如对IP和ICMP的直接访问。
-VC++6.0 using the Sockets API procedures for the realization of a chat room. Txt
VC++ on the support network programming socket support, WinInet support, MAPI and ISAPI support. One, Windows Sockets API is TCP/IP network environment, but also for the development of Internet, the most common API. The first University of California, Berkeley campus in UNIX for the TCP/IP protocol has developed an API, the API is well-known Berkeley Socket interface (socket). Into the Windows desktop operating system in the era after the Socket method inherited. In the TCP/IP network communication environment, Socket data transmission is a special kind of I/O, it is equivalent to a file descriptor, open the file with a similar function call in-socket (). Can interpret it this way: Socket is a communication endpoint, through which users can program the Socket and other network applications of Socket Communications. Socket exist in a "communication domain" (as described in the general thread o Platform: |
Size: 3072 |
Author:李涛 |
Hits:
Description: 进程通信的多方法实现。客户机产生两个随机数,发给两个服务器。服务器1(IP地址:192.168.0.1,Port:3254)将这两个随机数相加;服务器2(IP地址:192.168.0.10,Port:3255)将这两个随机数相减。两个服务器分别将运算结果返回给客户机,客户机显示回传结果。
要求用UDP方式,命名管道方式和命名的UNIX域套接字分别实现。
-Multi-process communication method. Client two random numbers generated, distributed to the two servers. Server 1 (IP address: 192.168.0.1, Port: 3254) the sum of the two random numbers Server 2 (IP address: 192.168.0.10, Port: 3255) to subtract the two random numbers. Two servers, respectively, computing the results back to the client, the client returns the results show. UDP request methods methods and Named Pipes named UNIX domain socket, respectively, to achieve. Platform: |
Size: 154624 |
Author:dwj |
Hits:
Description: magent 是一个简单,但非常有用的 memcached 缓存服务器的代理小程序。
主要功能:
• 保持到memcached服务器的多个连接
• 支持下列memcached指令
1. get gets
2. delete
3. incr decr
4. add set replace prepend append
5. cas
• 基于 libevent 的事件驱动库
• 支持 ketama 算法
• 服务器备份
• unix domain socket
命令行参数:
-h this message
-u uid
-g gid
-p port, default is 11211. (0 to disable tcp support)
-s ip:port, set memcached server ip and port
-b ip:port, set backup memcached server ip and port
-l ip, local bind ip address, default is 0.0.0.0
-n number, set max connections, default is 4096
-D do not go to background
-k use ketama key allocation algorithm
-f file, unix socket path to listen on. default is off
-i number, max keep alive connections for one memcached server, default is 20
-v verbose
-magent is a simple, but very useful memcached caching proxy server applet. Main features: • to maintain multiple connections to the memcached server memcached • support the following instructions 1. Get gets 2. Delete 3. Incr decr 4. Add set replace prepend append 5. Cas • event-driven based on libevent library • support ketama algorithm • • unix domain socket server backup command-line arguments:-h this message-u uid-g gid-p port, default is 11211. (0 to disable tcp support)-s ip: port, set memcached server ip and port-b ip : port, set backup memcached server ip and port-l ip, local bind ip address, default is 0.0.0.0-n number, set max connections, default is 4096-D do not go to background-k use ketama key allocation algorithm- f file, unix socket path to listen on. default is off-i number, max keep alive connections for one memcached server, default is 20-v verbose Platform: |
Size: 17408 |
Author:zzw |
Hits:
Description: non-standard class for creating inbound UNIX-domain socket on the Android platform, this is created in the Linux non-filesystem namespace.
Platform: |
Size: 1024 |
Author:tuijouque |
Hits:
Description: 基于labview的TCP客户端程序发送主机通常将发送缓冲区中的数据按内存地址从低到?的顺序发出,接收主机把从?络上接到的字节依次保存在接收缓冲区中,也是按内存地址从低到?的顺序保存。
TCP/IP协议规定,?络数据流应采??端字节序,即低地址?字节。
socket API是?层抽象的?络编程接?,适?于各种底层?络协议,如IPv4、 IPv6,以及后?要讲的UNIX Domain Socket。(Based on the TCP client program to send the host LabVIEW will usually send buffer according to the data in the memory address from low to order issued, the receiving host to receive from the network bytes on sequentially stored in the receive buffer, and according to the memory address from low to preservation order.
The TCP/IP agreement, network data flow should be endian, low byte address.
Socket API is layer abstract network programming interface, suitable in various underlying network protocol, such as IPv4, IPv6, and UNIX Domain Socket to say.) Platform: |
Size: 13312 |
Author:hoho8888 |
Hits: