hep: go-hep.org/x/hep/xrootd/xrdproto/handshake Index | Files

package handshake

import "go-hep.org/x/hep/xrootd/xrdproto/handshake"

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

Index

Package Files

handshake.go

Constants

const RequestLength = 20

RequestLength is the length of the Request in bytes.

type Request Uses

type Request [5]int32

Request holds the handshake request parameters.

func NewRequest Uses

func NewRequest() Request

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

func (Request) MarshalXrd Uses

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

MarshalXrd implements xrdproto.Marshaler

func (*Request) UnmarshalXrd Uses

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

UnmarshalXrd implements xrdproto.Unmarshaler

type Response Uses

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 Uses

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

MarshalXrd implements xrdproto.Marshaler

func (*Response) UnmarshalXrd Uses

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

UnmarshalXrd implements xrdproto.Unmarshaler

Package handshake imports 2 packages (graph) and is imported by 1 packages. Updated 2019-05-31. Refresh now. Tools for package owners.