Code Monkey home page Code Monkey logo

java_socket's Introduction

java_socket

socke代码测试,参考博客

package:socket1中是最简单的socket服务端和客户端测试,客户端发送信息,服务端接受并打印信息
package:socket2中,客户端发送信息,服务端接受并打印信息,然后发送给客户端一个反馈信息
package:socket3中,利用输出流,客户端分开发送多条消息给服务端
package:socket4中,使用多线程的方式,模拟多个客户端请求一个服务端的情况,线程数多余50的时候,服务端会处理不过来,出现拒绝服务,客户端请求失败的情况
package:socket5中,使用了线程池,匿名内部类,客户端和服务端都可以并行处理

java_socket's People

Contributors

huashijiacuo avatar

Watchers

James Cloos 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.