MCPcopy Index your code
hub / github.com/git/git / socket_write

Function socket_write

imap-send.c:384–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384static int socket_write(struct imap_socket *sock, const char *buf, int len)
385{
386 int n;
387#ifndef NO_OPENSSL
388 if (sock->ssl)
389 n = SSL_write(sock->ssl, buf, len);
390 else
391#endif
392 n = write_in_full(sock->fd[1], buf, len);
393 if (n != len) {
394 socket_perror("write", sock, n);
395 close(sock->fd[0]);
396 close(sock->fd[1]);
397 sock->fd[0] = sock->fd[1] = -1;
398 }
399 return n;
400}
401
402static void socket_shutdown(struct imap_socket *sock)
403{

Callers 6

issue_imap_cmdFunction · 0.85
get_cmd_resultFunction · 0.85
auth_plainFunction · 0.85
auth_cram_md5Function · 0.85
auth_oauthbearerFunction · 0.85
auth_xoauth2Function · 0.85

Calls 2

write_in_fullFunction · 0.85
socket_perrorFunction · 0.85

Tested by

no test coverage detected