Giter VIP home page Giter VIP logo

aesrw's Issues

Licence?

Hey what is the licence for this code? I find it very cool and Would like to Use it.

Writer需要关闭才会把数据写完整

这个会有一个问题, A server往B server写数据, 等待B server回复消息, 但是A要关闭writer才会把数据写完, 这个会导致一直等待下去。

嘿嘿, 不考虑自定义reader/writer的输出数据格式吗?

看了你的代码, 需要在close的时候写数据是因为cbc要求输入的数据是block长度的整数倍, 这样的话, 如果别人用了你的writer那么他就需要关注自己的数据是否是block长度的倍数, 考虑在网络场景下, 假设用户有自定义的数据格式, 那么他在封装完自己的数据后还需要再手动pad下数据, 否则他的包写进去后对端根本就收不到, 因为部分数据不满足block的整数倍, 需要close的时候才会写, 这样对使用者来说是很蛋疼的。如果在write数据的时候就自动补位并加入数据长度, 这样子就不需要在close的时候写数据了。 刚好最近也写了类似的代码, 就来看下老哥你的repo了。

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.