We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码位置
struct ServerInfo { 0 require string application; 1 require string serverName; 2 require int pid; 3 optional string adapter; };
// WriteTo encode struct to buffer func (st *ServerInfo) WriteTo(buf *codec.Buffer) (err error) { err = buf.WriteString(st.Application, 0) if err != nil { return err } err = buf.WriteString(st.ServerName, 1) if err != nil { return err } err = buf.WriteInt32(st.Pid, 2) if err != nil { return err } err = buf.WriteString(st.Adapter, 3) if err != nil { return err } return err }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
协议
代码位置
Adapter 字段为做判断,直接编码
代码位置
The text was updated successfully, but these errors were encountered: