Git Product home page Git Product logo

testtcpconnection's Introduction

TestTcpConnection

Tcp connection test.

Use GCDAsyncSocket framework.

基于GCDAsyncSocket项目进行实现;

增加了一个用户测试界面,

实现了手工收发消息的功能,

便于测试时使用;

GCDAsyncSocket原先的Demo里,测试界面比较简单,用起来不方便。另外,如果测试过程中,忽然拔掉网线,socketConnection不能及时响应断网的状态,所以增加了Reachability类来判断网络状态的变更;

测试情况: Wifi,2g/3g网络,手机在不同类型网络之间切换,客户端忽然拔掉网线,服务器端忽然中断,均可以正确响应;

testtcpconnection's People

Contributors

smalltask avatar

Watchers

Cronus 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.