diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-29 18:45:46 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-29 18:45:46 -0700 |
| commit | 969e6481f12ed859e42ed81699547d2d33b0637f (patch) | |
| tree | 0fe7be2a70f97f31dc126e06c677a8f03306ae32 /hotline/transaction_handlers.go | |
| parent | 78b305d6f57895ac9846821b63351f1010b95563 (diff) | |
Add test for DownloadBanner transaction
Diffstat (limited to 'hotline/transaction_handlers.go')
| -rw-r--r-- | hotline/transaction_handlers.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 8e2ef6b..4866bee 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -1921,6 +1921,12 @@ func HandleMakeAlias(cc *ClientConn, t *Transaction) (res []Transaction, err err return res, err } +// HandleDownloadBanner handles requests for a new banner from the server +// Fields used in the request: +// None +// Fields used in the reply: +// 107 fieldRefNum Used later for transfer +// 108 fieldTransferSize Size of data to be downloaded func HandleDownloadBanner(cc *ClientConn, t *Transaction) (res []Transaction, err error) { fi, err := cc.Server.FS.Stat(filepath.Join(cc.Server.ConfigDir, cc.Server.Config.BannerFile)) if err != nil { |