Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - create object
Search - create object - List
DL : 0
服务器和客户机端,即建立所谓的客户机/服务器编程模式。在服务器端必须先建立一个ServerSocket对象,然后等待客户机端的访问。而在客户机端,则是建立一个Socket对象直接跟服务器端连接,如果连接建立成功,则服务器端便会产生一个Socket对象,然后我们就可以利用这个Socket对象跟客户机端的Socket对象沟通了。此时在服务器和客户机之间建立了一条可靠连接,客户机和服务器可以在这条连接上可靠的传送数据。客户机发出请求,服务器监听来自客户机的请求,并为客户机提供相应的服务。 -Server and client side, namely the establishment of the so-called client/server programming model. The server side must be the creation of a ServerSocket object, and then wait for the client-side visit. In client-side, it is to create a Socket object to connect directly with the server-side, if the connection is established successfully, then the server will create a Socket object, and then we can take advantage of this Socket object with client-side of the Socket object to communicate. At this time in between server and client to establish a reliable connection, client and server can be connected to the reliable transmission of data. Client request, the server listening to requests from the client and the client to provide the corresponding services.
Date : 2026-01-10 Size : 3kb User : LeeDaHae

使用CSocket类和CArchive类,通过new关键字创建一个类对象来操作CSocket类的成员函数-Use CSocket and CArchive class, create a class object to manipulate the CSocket class member functions through the new keyword
Date : 2026-01-10 Size : 1.83mb User : like

使用tcl開發的modbus通訊程式,利用snit建立物件後可與modbus設備通訊-Modbus communication programming using tcl development, snit to create an object to communicate with modbus device
Date : 2026-01-10 Size : 3kb User : johnny..

Description: This network consists of 22 nodes. After creating the nam file and trace file, we set up topography object. Set node_ ($i) [$ns node] is used to create the nodes. Here we set the initial position for the every node by using initial_node_pos. server1 and server2 also created in this program. After that $Val (stop) is used to tell to nodes when the simulation ends. the nodes have Tcp connection. An "udp" agent is attached to node0, and a connection is established to udp "null" agent attached to server1 and node18 and etc.. As default, the maximum size of a packet that "udp" agent can generate is 1KByte. A tcp "null" agent generates and sends ACK packets to the sender (tcp agent) and frees the received packets. The Cbr is set to start at 0.0 sec and stop at 4.1 sec. Here we were using AODV routing protocol. The annotation trace is used to trace the details.
Date : 2026-01-10 Size : 9kb User : Basavaraj
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.