go-hep / hep

hep is the mono repository holding all of go-hep.org/x/hep packages and tools
https://go-hep.org
BSD 3-Clause "New" or "Revised" License
231 stars 37 forks source link

Xrootd #1014

Closed TDCBQ closed 1 week ago

TDCBQ commented 5 months ago

Why is there no method in xrootd for the server to accept locate requests

TDCBQ commented 5 months ago

Why is there no method in xrootd for the server to accept locate requests

What should I do with the Locale function? My method returns OK directly, but xrdfs prompts me

Invalid response

This is a request from my client

xrdfs  root://localhost:1094/   ls -l /

This is the code I added to the server

func (h *fshandler) Locate(sessionID [16]byte, request *locate.Request) (xrdproto. Marshaler, xrdproto. ResponseStatus){
host := "localhost:1094"
Return location. Response {Data: [] byte (host)}, xrdproto.Ok
}