Lines Matching refs:mail_socket
312 shutdown(PW32G(mail_socket), 0); in TSMClose()
313 closesocket(PW32G(mail_socket)); in TSMClose()
812 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
818 closesocket(PW32G(mail_socket)); in MailConnect()
825 closesocket(PW32G(mail_socket)); in MailConnect()
838 closesocket(PW32G(mail_socket)); in MailConnect()
847 closesocket(PW32G(mail_socket)); in MailConnect()
872 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
873 closesocket(PW32G(mail_socket)); in MailConnect()
904 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
937 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()