GithubHelp home page GithubHelp logo

simplenet's Introduction

你需要根据实验讲义的要求实现各个目录下源文件中的函数. 其中一些函数你已在前面的实验中实现过了. 
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)

simplenet's People

Contributors

csdaiwei avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.