Versions in this module Expand all Collapse all v3 v3.0.3 Dec 13, 2023 v3.0.2 Aug 30, 2022 Changes in this version + type Client struct + func NewClient(addr string) (*Client, error) + func (c *Client) RequestTSize(s bool) + func (c *Client) SetBackoff(h backoffFunc) + func (c *Client) SetBlockSize(s int) + func (c *Client) SetRetries(count int) + func (c *Client) SetTimeout(t time.Duration) + func (c Client) Receive(filename string, mode string) (io.WriterTo, error) + func (c Client) Send(filename string, mode string) (io.ReaderFrom, error) + type Hook interface + OnFailure func(stats TransferStats, err error) + OnSuccess func(stats TransferStats) + type IncomingTransfer interface + RemoteAddr func() net.UDPAddr + Size func() (n int64, ok bool) + type OutgoingTransfer interface + RemoteAddr func() net.UDPAddr + SetSize func(n int64) + type RequestPacketInfo interface + LocalIP func() net.IP + type Server struct + func NewServer(readHandler func(filename string, rf io.ReaderFrom) error, ...) *Server + func (s *Server) EnableSinglePort() + func (s *Server) ListenAndServe(addr string) error + func (s *Server) Serve(conn net.PacketConn) error + func (s *Server) SetAnticipate(winsz uint) + func (s *Server) SetBackoff(h backoffFunc) + func (s *Server) SetBlockSize(i int) + func (s *Server) SetHook(hook Hook) + func (s *Server) SetRetries(count int) + func (s *Server) SetTimeout(t time.Duration) + func (s *Server) Shutdown() + type TransferStats struct + DatagramsAcked int + DatagramsSent int + Duration time.Duration + Filename string + Mode string + Opts options + RemoteAddr net.IP + SenderAnticipateEnabled bool + Tid int