Files
TouchSocket/handbook
viggo 92119f64cd update handbook/docs/customfixedheaderdatahandlingadapter.mdx.
public bool OnParsingHeader(byte[] header)
    {
        //在该示例中,第一个字节表示后续的所有数据长度,但是header设置的是3,所以后续还应当接收length-2个长度。
        if (header.Length == 3)
        {
            this.BodyLength = header[0] - 2;
            this.DataType = header[1];
            this.OrderType = header[2];
            return true;
        }
        return false;
    }

增加了判断包头长度是否等于3。

Signed-off-by: viggo <liangwi@qq.com>
2024-06-10 19:16:40 +00:00
..
2024-04-28 23:08:49 +08:00
2024-05-21 20:25:21 +08:00
2024-04-11 16:39:42 +08:00
2024-06-04 22:38:13 +08:00
2024-04-29 13:46:10 +08:00
2024-05-29 15:00:57 +08:00
2024-05-29 14:41:44 +08:00
2024-06-04 22:38:13 +08:00
2024-06-04 22:38:13 +08:00
2024-04-28 11:51:16 +08:00
2024-05-07 16:04:40 +08:00
2024-04-28 11:51:16 +08:00
2024-04-26 22:43:19 +08:00

Website

This website is built using Docusaurus, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

$ USE_SSH=true yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.