Lines Matching refs:mail_socket
340 shutdown(PW32G(mail_socket), 0); in TSMClose()
341 closesocket(PW32G(mail_socket)); in TSMClose()
795 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
801 closesocket(PW32G(mail_socket)); in MailConnect()
808 closesocket(PW32G(mail_socket)); in MailConnect()
821 closesocket(PW32G(mail_socket)); in MailConnect()
830 closesocket(PW32G(mail_socket)); in MailConnect()
855 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
856 closesocket(PW32G(mail_socket)); in MailConnect()
887 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
920 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()