| 65 | |
| 66 | print("Example 2") |
| 67 | class NullSocket: |
| 68 | def __init__(self): |
| 69 | self.handle = open(os.devnull, "wb") |
| 70 | |
| 71 | def send(self, data): |
| 72 | self.handle.write(data) |
| 73 | |
| 74 | socket = ... # socket connection to client |
| 75 | video_data = ... # bytes containing data for video_id |