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 ¶
- Constants
- type Request
- func NewRequest() Request
- func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error
- func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error
- type Response
Constants ¶
const RequestLength = 20
RequestLength is the length of the Request in bytes.
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 ¶
MarshalXrd implements xrdproto.Marshaler
func (*Request) UnmarshalXrd ¶
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 ¶
MarshalXrd implements xrdproto.Marshaler
func (*Response) UnmarshalXrd ¶
UnmarshalXrd implements xrdproto.Unmarshaler
Source Files ¶
handshake.go
- Version
- v0.37.0 (latest)
- Published
- May 20, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 14 hours ago –
Tools for package owners.