Giter VIP home page Giter VIP logo

ftdc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ftdc's Issues

关于ReqUserLogin报文

你好,有一个问题想请教作者:
ReqUserLogin.class中,有一个PADDING的常量:
private static final byte[] PADDING = new byte[] { 0x10, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x06, 0x00, 0x02, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x10, 0x01, 0x00, 0x06, 0x00, 0x03, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x10, 0x01, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00 };
虽然您写了注释“猜测是控制订阅私有流、公有流”
但我在FTD的文档里都找不到。
能请问这个byte[]的具体作用和来源么?

多期货公司问题

概览了一下代码,有些疑问,请赐教。
FtdClientPool 中的pollMap以ip+port为key,以FixedChannelPool为value;则我认为,FtdClientPool 中的所有连接对brokerId及userId不敏感(FtdClientPool 中的acquire方法并未将brokerId及userId作为取连接的依据),每次发送登录,从整个pool中取一个连接,登录成功时与Spi及Session绑定。
如果上述未理解错误,则目前尚无法连接多家期货公司。
建议两种方案:
1:取消FtdClientPool的单例机制,每期货公司创建一实例。
2:在FtdClientPool获取连接的机制中加入brokerId与fixedChannelPool的对应关系。

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.