handshake

package
v0.28.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL