MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-577569.py

File recipe-577569.py

recipes/Python/577569_NBD_server_in_python/recipe-577569.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/python
2import struct, socket, sys, time
3# Working: nbd protocol, read/write serving up files, error handling, file size detection, in theory, large file support... not really, so_reuseaddr, nonforking
4

Callers

nothing calls this directly

Calls 6

serveclientFunction · 0.85
socketMethod · 0.80
setsockoptMethod · 0.45
bindMethod · 0.45
listenMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected