filetransfer

package
v0.4.0-el2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const BytestreamMethod = "http://jabber.org/protocol/bytestreams"

BytestreamMethod contains the profile name for bytestreams

View Source
const IBBMethod = "http://jabber.org/protocol/ibb"

IBBMethod contains the profile name for IBB

Variables

This section is empty.

Functions

func BytestreamQuery

func BytestreamQuery(s access.Session, stanza *data.ClientIQ) (ret interface{}, iqtype string, ignore bool)

BytestreamQuery is the hook function that will be called when we receive a bytestream query IQ

func IbbClose

func IbbClose(s access.Session, stanza *data.ClientIQ) (ret interface{}, iqtype string, ignore bool)

IbbClose is the hook function that will be called when we receive an ibb close IQ

func IbbData

func IbbData(s access.Session, stanza *data.ClientIQ) (interface{}, string, bool)

IbbData is the hook function that will be called when we receive an ibb data IQ

func IbbMessageData

func IbbMessageData(s access.Session, stanza *data.ClientMessage, ext *data.Extension)

IbbMessageData is the hook function that will be called when we receive a message containing an ibb data

func IbbOpen

func IbbOpen(s access.Session, stanza *data.ClientIQ) (ret interface{}, iqtype string, ignore bool)

IbbOpen is the hook function that will be called when we receive an ibb open IQ

func InitIQ

func InitIQ(s access.Session, stanza *data.ClientIQ, si data.SI) (ret interface{}, iqtype string, ignore bool)

InitIQ is the hook function that will be called when we receive a file or directory transfer stream initiation IQ

func InitSend

func InitSend(s access.Session, peer jid.Any, file string, onNoEnc func() bool, encDecision func(bool)) *sdata.FileTransferControl

InitSend starts the process of sending a file to a peer

func InitSendDir

func InitSendDir(s access.Session, peer jid.Any, dir string, onNoEnc func() bool, encDecision func(bool)) *sdata.FileTransferControl

InitSendDir starts the process of sending a directory to a peer

Types

This section is empty.

Jump to

Keyboard shortcuts

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