csdaiwei / simplenet Goto Github PK
View Code? Open in Web Editor NEWa TCP\IP like network system
a TCP\IP like network system
你需要根据实验讲义的要求实现各个目录下源文件中的函数. 其中一些函数你已在前面的实验中实现过了. client目录和server目录下提供的app_{simple/stress}_{client/server}.c文件用于测试. 编译和运行的方法: 使用了四台主机: csnetlab_1, csnetlab_2, csnetlab_3, csnetlab_4 使用make命令编译. 为了运行程序: 1. 启动重叠网络进程: 在每个节点上, 进入son目录并运行./son& 4个节点上的son进程应在1分钟内启动好. 等待直到你在所有节点上看到: waiting for connection from SIP process. 2. 启动网络进程: 在每个节点上, 进入sip目录并运行./sip& 等待直到你在所有节点上看到: waiting for connection from STCP process. 3. 启动传输层并运行应用程序: 在一个节点上, 进入server目录并运行./app_simple_app或./app_stress_app 在另一个节点上, 进入client目录并运行./app_simple_app或./app_stress_app 为了终止程序: 使用"kill -s 2 进程号"杀掉son进程和sip进程. 如果程序使用的端口号已被使用, 程序将退出. IM 运行: 在son和sip建立成功后,使用./IM/server 启动IM的服务器。 (需修改IM/server.c 中的SERVER_NODE_ID,使其为该节点的nodeID) 在其他节点上,./IM/client 启动IM的客户端。 (需修改IM/client.c 中的SERVER_NODE_ID,使其为服务器节点的nodeID)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.