搜索资源列表
udp-reliable-data-transmission
- UDP实现可靠数据传输。使用GBN算法,实现了:1.随即丢包(随机数产生器Math.random()) 2.丢包后遇冗余ack重传 3.超时重传 (DatagramSocket和Socket都有成员函数setSoTimeout(delay),通过捕获超时时抛出的IO异常来实现超时重传)-Reliable UDP data transfer. GBN algorithm used to realize: 1. Then packet loss (random number generator Ma
javasocket
- 1. socket通信:有客户端和服务端的socket代码。 2. 多线程:客户端和服务端各用一线程发送信息;服务端另有一监听线程,用于把超时的信息删除。 这里应用到了同步,使两个线程可以操作同一个map。 -1. Socket communications: There are client and service side of the socket code. 2. Multi-threading: client and server uses one threa
ppm
- 建立服务器套接字 建立客户端套接字 设置等待连接的超时时间-Set up a server socket, to set up the client socket, waiting for the connection timeout setting