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

C/C++ ÖеĹØÓÚrecv sendº¯Êý - C/C++ / CÓïÑÔ

ÎÒÃǹ«Ë¾ÓÃTCP ·¢ËÍÊý¾Ýʱ£¬°üÀ¨¼òµ¥ÏûÏ¢£¬¶¼ÓÃÑ­»·¼ÓÕâÁ½¸öº¯Êý£¬ÕâÑùµÄ»°£¬µ±ÏûÏ¢ºÜÉÙʱ£¬¾Í±ØÐëµÃË«·½ÏÈÖ¸¶¨ºÃÏûÏ¢µÄ³¤¶È¡£Ò²¾ÍÊÇ˵µÃ¶à·¢ËÍÒ»´ÎÊý¾Ý¡£·ñÔòË«·½¾ÍËÀËø¡£È«¶¼ÔڵȴýÊý¾Ý¡£
ÇëÎÊһϣ¬ÕâÊÇÕý³£µÄ½â¾ö·½Ê½Ã´£¿
Èç¹ûÓÃÑ­»·£¬ÄÇôÿ´Î·¢ËͶàÉÙÊý¾ÝºÏÊÊÄØ£¿
1. ȷʵÇé¿öÏ£¬recvºÍsend¶¼ÊÇ×èÈûµÄ£¬Ò²¾ÍÊÇ˵Èç¹ûûÓÐÊý¾Ý»áÒ»Ö±µÈÏÂÈ¥¡£
2. winsockûÓÐ×öÈκεĴ«Êä¿É¿¿µÄ±£ÕÏ£¬ËùÒÔÐèÒª×Ô¼ºÈ·±££¬¿ÉÒÔ½«Êý¾Ý´ò°ü³ÉÒ»¸ö½á¹¹Ì壬ǰÃæÌí¼ÓһЩ¿ØÖÆÍ·ÐÅÏ¢£¬ÏȽÓÊÕ»ò·¢ËÍÕⲿ·Ö¶«Î÷¡£
3. Ò»°ãÀ´Ëµ£¬²»½¨ÒésendºÍrecvдÔÚͬһ¸öÏß³ÌÀÕâÑùÏ໥µÈ´ýºÜ²»ºÃ¡£

ÊÕ·¢Ò»°ãʹÓò»Í¬µÄÏ̡߳£»òÕßʹÓÃselect¾Í¿ÉÒÔ·ÅÔÚͬһ¸öÏß³ÌÁË¡£
Èç¹ûʹÓõÄÊÇtcp£¬Ò»°ãÒªÓÐ×Ô¼º¶¨ÒåµÄ¹æÔòÈ¥·Ö¸ôÊý¾ÝÁ¿µÄƬ¶Î¡£·ñÔò½ÓÊÕ·½ÎÞ·¨ÖªµÀºÎʱ½ÓÊÕÒ»¸öÍêÕûµÄ°ü¡£
ÖÁÓÚÈçºÎ·Ö¸ôÊý¾ÝÁ÷£¬¶øÒѸ½¼ÓÒ»¸ö³¤¶È£¬»òÕßÆðʼ½áÊø·û¡£


Ïà¹ØÎÊ´ð£º

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

ÇóÖú£ºC´úÂë¸Äд³ÉVB´úÂë - VB / »ù´¡Àà

Ë­ÄÜ°ïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......

visual c++2008²»ÄܱàÒëC³ÌÐòÂð - C/C++ / CÓïÑÔ

visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©

¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ

ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ