MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / sendAll

Function sendAll

tools/donate-cpu-server.py:1141–1148  ·  view source on GitHub ↗
(connection: socket.socket, text: str)

Source from the content-addressed store, hash-verified

1139
1140
1141def sendAll(connection: socket.socket, text: str) -> None:
1142 data = text.encode('utf-8', 'ignore')
1143 while data:
1144 num = connection.send(data)
1145 if num < len(data):
1146 data = data[num:]
1147 else:
1148 data = None
1149
1150
1151def httpGetResponse(connection: socket.socket, data: str, contentType: str) -> None:

Callers 1

httpGetResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected