Versions in this module Expand all Collapse all v0 v0.0.1 Dec 30, 2021 Changes in this version + func ListenAndServe(addr, rootdir string) error + type ACL struct + Read bool + ReadDir string + Write bool + WriteDir string + type Client struct + Addr *net.UDPAddr + BlockNumber uint16 + BlockSize int + Conn *net.UDPConn + Databuf []byte + Options map[string][]byte + ReadDir string + TimeOut int + Tsize uint16 + WriteDir string + func (c *Client) Close() + func (c *Client) NewTransfer(filename, mode string) error + func (c *Client) SendFile(filename, mode string) error + type TServer struct + ACLs map[*net.IPNet]*ACL + DefRead bool + DefReadDir string + DefWrite bool + DefWriteDir string + func NewServer(netw, addr, rootdir, defaultreaddir, defaultwritedir string, ...) (*TServer, error) + func (ts *TServer) AddACL(hostornet string, write, read bool, writedir, readdir string) error + func (ts *TServer) AddACLStruct(hostornet string, acl *ACL) error + func (ts *TServer) DelACL(hostornet string) error + func (ts *TServer) Serve() error + func (ts TServer) CheckClient(opcode uint16, caddr *net.UDPAddr) (bool, string)