in fbtftp/base_server.py [0:0]
def get_handler(self, server_addr, peer, path, options):
"""
Returns an instance of `BaseHandler`.
Note:
This is a virtual method and must be overridden in a sub-class.
This method must return an instance of `BaseHandler`.
Args:
server_addr (tuple): tuple containing ip of the server and
listening port.
peer (tuple): tuple containing ip and port of the client.
path (string): the file path requested by the client
options (dict): a dictionary containing the options the clients
wants to negotiate.
Example of options:
- mode (string): can be netascii or octet. See RFC 1350.
- retries (int)
- timeout (int)
- tsize (int): transfer size option. See RFC 1784.
- blksize: size of blocks. See RFC 1783 and RFC 2349.
"""
raise NotImplementedError()