MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Send

Method Send

extra/yassl/src/yassl_int.cpp:1253–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251
1252
1253void SSL::Send(const byte* buffer, uint sz)
1254{
1255 unsigned int sent = 0;
1256
1257 if (socket_.send(buffer, sz, sent) != sz) {
1258 if (socket_.WouldBlock()) {
1259 buffers_.SetOutput(NEW_YS output_buffer(sz - sent, buffer + sent,
1260 sz - sent));
1261 SetError(YasslError(SSL_ERROR_WANT_WRITE));
1262 }
1263 else
1264 SetError(send_error);
1265 }
1266}
1267
1268
1269void SSL::SendWriteBuffered()

Callers 12

sendClientHelloFunction · 0.80
sendClientKeyExchangeFunction · 0.80
sendServerKeyExchangeFunction · 0.80
sendChangeCipherFunction · 0.80
sendFinishedFunction · 0.80
sendDataFunction · 0.80
sendAlertFunction · 0.80
sendServerHelloFunction · 0.80
sendServerHelloDoneFunction · 0.80
sendCertificateFunction · 0.80
sendCertificateRequestFunction · 0.80
sendCertificateVerifyFunction · 0.80

Calls 5

YasslErrorEnum · 0.85
sendMethod · 0.80
WouldBlockMethod · 0.80
SetOutputMethod · 0.80
output_bufferClass · 0.50

Tested by

no test coverage detected