Lines Matching refs:mail_socket
325 shutdown(PW32G(mail_socket), 0); in TSMClose()
326 closesocket(PW32G(mail_socket)); in TSMClose()
771 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
777 closesocket(PW32G(mail_socket)); in MailConnect()
784 closesocket(PW32G(mail_socket)); in MailConnect()
797 closesocket(PW32G(mail_socket)); in MailConnect()
806 closesocket(PW32G(mail_socket)); in MailConnect()
831 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
832 closesocket(PW32G(mail_socket)); in MailConnect()
863 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
896 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()