Example #1
0
eNextState pop3_connect_ip(AsyncIO *IO)
{
	pop3aggr *cpptr = IO->Data;

	if (cpptr->IOStart == 0.0) /* whith or without DNS? */
		cpptr->IOStart = IO->Now;

	EVP3CCS_syslog(LOG_DEBUG, "POP3: %s\n", __FUNCTION__);

	return EvConnectSock(IO,
			     POP3_C_ConnTimeout,
			     POP3_C_ReadTimeouts[0],
			     1);
}
Example #2
0
/*****************************************************************************
 * So we connect our Relay IP here.                                          *
 *****************************************************************************/
eNextState mx_connect_ip(AsyncIO *IO)
{
	SmtpOutMsg *Msg = IO->Data;
	SetSMTPState(IO, eSTMPconnecting);

	EVS_syslog(LOG_DEBUG, "%s(%s)\n", __FUNCTION__, (Msg->IsRelay)? "Relay":"Remote");

	IO->ConnectMe = Msg->pCurrRelay;
	Msg->State = eConnectMX;

	SetConnectStatus(IO);

	return EvConnectSock(IO,
			     SMTP_C_ConnTimeout,
			     SMTP_C_ReadTimeouts[0],
			     1);
}