Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏ·¢ËÍÓʼþ¸½¼þ²»³¬¹ý15KÎÊÌâ

²»ÖªµÀΪʲô·¢Ë͵ĸ½¼þµÍÓÚ15K´óСÊÇÕý³££¬µ«ÊÇ´óÓÚ15Kʱ·¢ËÍÓʼþ¾Í»ásocket³¬Ê±·¢ËÍʧ°Ü
Ôõô¸½¼þÁ¬1M¶¼´ïµ½²»ÁË£¬ÓôÃÆÖС£¡£¡£

C/C++ code:

int mail(void){
if(!openMail()){
printf("open mail error\n");
return -1;
}
if(!SendMailGeneral(to,now,subject,"2010-1-16")){
printf("send mail error\n");
return -1;
}
if(SendAffix("test.txt") != 1) {
printf("send affix error\n");
}


if(!End()){
printf("End error\n");
return -1;
}
printf("send over\n");
Destory();

}
/**
* 2.·¢ËÍÓʼþ
*/

int SendMailGeneral(const char *to,const char *date,const char *subject,const char *data) {
if(to == NULL || date == NULL || subject == NULL) return -1;

sprintf(from,"MAIL from: <%s>\r\n",SERVERMAIL);
rt = send(s,from,strlen(from),0);
if(!GetResponse()) return -1;
sprintf(To,"RCPT TO: <%s>\r\n",to);
rt = send(s,To,strlen(To),0);
if(!GetResponse()) return -1;
sprintf(tmpbuf,"DATA\r\n");
rt = send(s,tmpbuf,strlen(tmpbuf),0);
if(!GetResponse()) return -1;

sprintf(from,"from: %s\r\n",SERVERMAIL);
sprintf(To,"To: %s\r\n",to);
sprintf(Date,"Date: %s\r\n",date);
sprintf(Subject,"Subject: %s\r\n",subject);


Ïà¹ØÎÊ´ð£º

linux½Ì³Ì - Linux/UnixÉçÇø / ϵͳά»¤ÓëʹÓÃÇø

ÓÐʲôºÃµÄLinux½Ì³ÌÂð£¿
СµÜл¹ý~
[ÎÊÌâµãÊý:0·Ö]

google

¾Ý˵Äñ¸çµÄ˽·¿²Ë²»´í¡£

Äñ¸çµÄLinux˽·¿²Ë
¸ü¶àµÄÔÙÕâÉÏÃæÈ¥ËÑË÷һϺÜLIUNXÊé¼®»¹²»´í

ÒýÓÃ
google
Õý½â

Äñ¸çµÄLinux˽·¿²Ë  ......

linuxÏÂCÓïÑÔ¿ª·¢oracleµÄÎÊÌâ¡£

Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â 
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......

Linux C ¶Î´íÎó - C/C++ / CÓïÑÔ

´úÂëÌ«¶à£¬²»ºÃÌù£¬
´óÖÂÉæ¼°µ½ÕâЩ£º
char *arg[MAXSIZE];
char *buffer[MAXSIZE];
.........
arg[k]=(char*)malloc(sizeof(char)*j);
strcpy(arg[k],buffer);
.................[color=#993300][/color]
µ ......

請½Ì LINUX °²裝 PHP5 - PHP / »ù´¡±à³Ì

ÔÚLINUX裏°²裝 CURL 時,³ö現ÈçÏÂ報錯
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something ......

lINUX µÄPIDµÄÎÊÌâ - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø

¸÷λÀÏʦºÃ£ºÐ¡µÜÓÐÒ»µãÎÊÌâ ×ÁÄ¥Á˺þÃÏëÇë½Ì´óʦÃÇ£º
ÎÒÔÚ°²×°mysqlµÄʱºò °²×°µ½
./configure \
--prefix=/usr/local/mysql \
--with-extra-charsets=all
Õâ²½µÄʱºò³öÏÖ£º
configure: unknown option --p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ