Lines Matching refs:mail_socket
339 shutdown(PW32G(mail_socket), 0); in TSMClose()
340 closesocket(PW32G(mail_socket)); in TSMClose()
794 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
800 closesocket(PW32G(mail_socket)); in MailConnect()
807 closesocket(PW32G(mail_socket)); in MailConnect()
820 closesocket(PW32G(mail_socket)); in MailConnect()
829 closesocket(PW32G(mail_socket)); in MailConnect()
854 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
855 closesocket(PW32G(mail_socket)); in MailConnect()
886 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
919 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()