Documentation

Overview

    Package handshake contains the structures describing request and response for handshake request (see XRootD specification).

    Index

    Constants

    View Source
    const RequestLength = 20

      RequestLength is the length of the Request in bytes.

      Variables

      This section is empty.

      Functions

      This section is empty.

      Types

      type Request

      type Request [5]int32

        Request holds the handshake request parameters.

        func NewRequest

        func NewRequest() Request

          NewRequest forms a Request that complies with the XRootD protocol v3.1.0.

          func (Request) MarshalXrd

          func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

            MarshalXrd implements xrdproto.Marshaler

            func (*Request) UnmarshalXrd

            func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

              UnmarshalXrd implements xrdproto.Unmarshaler

              type Response

              type Response struct {
              	ProtocolVersion int32
              	ServerType      xrdproto.ServerType
              }

                Response is a response for the handshake request, which contains protocol version and server type.

                func (Response) MarshalXrd

                func (o Response) MarshalXrd(wBuffer *xrdenc.WBuffer) error

                  MarshalXrd implements xrdproto.Marshaler

                  func (*Response) UnmarshalXrd

                  func (o *Response) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

                    UnmarshalXrd implements xrdproto.Unmarshaler

                    Source Files