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

FLASH+JAVA¿ª·¢ÊµÊ±ÍøÂçÓÎÏ·

 ±¾ÎÄ·ÖÁ½²¿·Ö£ºFLASH±à³Ì ºÍ Java±à³Ì£¬´ËÎļǼµÄ½ö½öÊÇÎÒÔÚ̽Ë÷ÖеÄһЩÊÕ»ñ£¬ÆäÖÐÓÃÁ˺ܶà¸öÈË»¯µÄÃèÊöÓïÑÔ£¬²¢²»ÊÇÒµ½ç±ê×¼µÄÓÃÓï¡£ £º£©
̽Ë÷±Ê¼Ç£º  
Ä¿Ç°¹úÄÚFlashÓ¦Óô󲿷ֻ¹ÊÇÔÚÖÆ×÷¾«ÃÀµÄ¶¯»­·½Ã棬µ«¾ÝÎÒÁ˽âÔçÔÚFlash4 µÄʱ´ú£¬¹úÍâһЩÈ˾ÍÒѾ­¿ªÊ¼½«flash¼¼ÊõÔËÓÃÓÚ¿ª·¢¶¯Ì¬ÍøÕ¾£¨ºÍphp¡¢asp¡¢jsp½áºÏ£©ºÍ¿ª·¢Ó¦ÓóÌÐò£¨ÏóÍøÂçÓÎÏ·¡¢Ô¶³Ì¹ÜÀíµÈÓ¦ÓÃÈí¼þ£©µÄÏîÄ¿ÖÐÁË¡£¶øÖ±µ½½ñÈÕ£¬Õâ·½ÃæÔÚ¹úÄÚ·¢Õ¹»¹ÊDZȽϻºÂý£¨ÓÐÒ»²¿·ÖÔ­ÒòÊÇÉÙÊýÈËÕÆÎÕÁ˹ؼü¼¼Êõ£¬µ«²»Ô¸Òâ¹²Ïí³öÀ´£©¡£Òò´Ë£¬ÎÒ½«ÖÂÁ¦ÓÚÍƶ¯¹úÄÚflash¼¼ÊõÔÚ¿ª·¢¶¯Ì¬ÍøÕ¾ºÍ¿ª·¢Ó¦ÓóÌÐò·½ÃæµÄ·¢Õ¹£¬²¢½«×Ô¼ºÇ×ÊÖдµÄ´úÂ빫²¼µ½ÍøÂçÖУ¬ÒÔ±ãÓÚ´ó¼Ò¹²Ïí¡¢½»Á÷¡£
Éæ¼°µ½µÄ֪ʶ·¶³ë£º
1. socket¸ÅÄî
2. java±à³ÌÓïÑÔ
3. Flash MX ActionScriptÖеÄXMLSocket
ʵʱÍøÂçÓÎÏ·Ò²ÊôÓÚ´óÐÍÓ¦ÓóÌÐò·¶³ë£¬Ò»¸ö¹Ø¼ü»·½Ú¾ÍÊǽ¨Á¢ÊµÊ±Ö÷¶¯Í¨ÐÅ»·¾³£¨Ïà¶ÔµÄ£¬Óиö³ÆΪ±»¶¯Í¨¡£Ðŵķ½Ê½£¬×îºÃµÄÀý×Ó¾ÍÊÇÄãÕýÔÚÓÃIEä¯ÀÀÆ÷ä¯ÀÀÒ»¸öÍøÕ¾£¬´Ëʱä¯ÀÀÆ÷ºÍ·þÎñÆ÷Ö®¼ä¾ÍÊDZ»¶¯Í¨ÐÅ·½Ê½£ºÈç¹ûÄã²»µã»÷Ò»¸öÁ¬½Ó£¬·¢ËÍÒ»¸öWEBÒ³ÃæÇëÇóµ½WEB·þÎñÆ÷£¬WEB·þÎñÆ÷ÊDz»»áÖ÷¶¯ÏòÄãµÄä¯ÀÀÆ÷·¢ËÍÈκÎÒ³ÃæµÄ£©¡£ÔÚ´ËSocekt API¾Í³ÉΪÁËÊ×Ñ¡¡£ÏÞÓÚƪ·ù£¬ÕâÀï²»ÔÙ¹ý¶à½âÊÍsocketµÄº¬Ò壬ֻϣÍû´ó¼ÒÄܼÇסһµã£¬Ö»Òª½¨Á¢Äܹ»ÊµÊ±Í¨ÐŵÄÓ¦ÓóÌÐò¾ÍÐèÒª½¨Á¢socketÁ¬½Ó¡£
¡¾¿Í»§¶ËFLASH±à³Ì²¿·Ö¡¿
´Ómx×Ô´øµÄas×ÖµäÖпÉÒÔ¿´³ö£¬FlashÔÚÍøÂçͨÐÅ·½ÃæµÃµ½Á˷dz£´óµÄ¼ÓÇ¿¡£“The XMLSocket object is useful for client-server applications that require low latency, such as real-time chat systems”×¢Òâ×îºóµÄһС¶Î»°£ºsuch as real-time chat systems£¨ÒëÎÄ£ºÀýÈçʵʱÁÄÌìϵͳ£©
ͨ¹ýµ÷ÓÃXMLSocket·½·¨FLASH¾Í¿ÉÒÔºÍһЩÓÉÇ¿´óÓïÑÔ±àдµÄ·þÎñÆ÷Ó¦ÓóÌÐò½øÐÐͨÐÅ£¬½ø¶ø¿ª·¢³ö¸÷ÖÖʵʱÐÅÏ¢½»Á÷ϵͳ¡£ËùÒÔÎÒÃǵÄÄ¿±êËø¶¨ÔÚXMLSocket£¡
ÁíÍâÖµµÃ×¢ÒâµÄÊÇ£ºÓкܶàÈËÒ»¿´µ½XMLSocketÇ°ÃæµÄXMLÈý¸ö×Öĸ£¬¾Í¾õµÃÍ·ÌÛ£¬ÒÔΪ±ØÐëÏÈÊìϤÉõÖÁ¾«Í¨XML²ÅÄÜʹÓÃÕâ¸ö¶ÔÏó¼°Æä·½·¨£¬µ«ÎÒҪ˵µÄÊÇÔÚÄ㲻̫Á˽âXMLµÄ½×¶Î£¬Ö»Òª°ÑXMLÐÅÏ¢¿´³ÉÊÇÒ»¸öËæÒⳤ¶È£¨>0£©µÄ×Ö·û´®£¬°ÑXMLSocket¿´³ÉÊÇÒ»¸öÖ»ÊÇÓÃÀ´·¢ËÍ×Ö·û´®Êý¾ÝµÄ¶ÔÏó¾ÍºÃ°ì¶àÁË¡£
ÎÒÃÇ»¹ÊÇ´Ó·ÖÎö´úÂë×ÅÊÖ£¬À´¿ç½ø¿ª·¢FLASHʵʱÍøÂçÓÎÏ·µÄ´óÃÅ°É£º
//½¨Á¢XMLSocket¶ÔÏó
var mySocket = new XMLSocket();
mySocket.connect("12


Ïà¹ØÎĵµ£º

java JNI ³¢ÊÔ

 ¡¡¡¡Ê×ÏÈÒýÓÃһƪÎÄÕ£¬½éÉÜÒ»¸ö¼òµ¥µÄJNIµÄµ÷ÓõĹý³Ì¡£¡¡¡¡JAVAÒÔÆä¿çƽ̨µÄÌØÐÔÉîÊÜÈËÃÇϲ°®£¬¶øÓÖÕýÓÉÓÚËüµÄ¿çƽ̨µÄÄ¿µÄ£¬Ê¹µÃËüºÍ±¾µØ»úÆ÷µÄ¸÷ÖÖÄÚ²¿ÁªÏµ±äµÃºÜÉÙ£¬Ô¼ÊøÁËËüµÄ¹¦ÄÜ¡£½â¾öJAVA¶Ô±¾µØ²Ù×÷µÄÒ»ÖÖ·½·¨¾ÍÊÇJNI¡£¡¡¡¡JAVAͨ¹ýJNIµ÷Óñ¾µØ·½·¨£¬¶ø±¾µØ·½·¨ÊÇÒÔ¿âÎļþµÄÐÎʽ´æ·ÅµÄ£¨ÔÚWINDOWSƽ̨ÉÏÊÇDL ......

Java Reflection

 
·´ÉäÊÇJavaÓïÑÔÖкÜÖØÒªµÄÒ»¸ö×é³É²¿·Ö£¬ËùÒԾʹ˻°ÌâÌÖÂÛµÄ×ÊÔ´¿ÉνÊýÖ®²»¾¡£¬ÈÕ³£¿ª·¢Ò²»á¾­³£Ê¹Óõ½¹ØÓÚ·´ÉäµÄReflection
API¡£Java5.0
Tiger³öÏÖÒԺ󣬸ü¶Ô·´ÉäAPIÓÐÁËеÄÀ©Õ¹£¬¾¡¹ÜÌÖÂ۵Ļ°ÌâºÜ¶à£¬²»¹ýÎÒ»¹ÊǾõµÃ²»¹»È«Ã棬ÓÈÆäÊǶԷºÐÍÕâÒ»¿é£¬ËùÒÔ¾ÍÎÒËùÖª£¬ÔÙ»¨Á¦Æø×ܽáÒ»·¬
Ê×ÏÈ·´ÉäµÄÈë¿ÚÊÇ´ÓClass¿ ......

Java»ñÈ¡ÇëÇó¿Í»§¶ËµÄÕæʵIPµØÖ·

ת×Ô http://blog.csdn.net/foamflower/archive/2009/10/29/4744862.aspx
ÏñÒƶ¯Íø¹ØÒ»Ñù£¬iisforwardÕâ¸öISAPI¹ýÂËÆ÷Ò²»á¶Ôrequest¶ÔÏó½øÐÐÔÙ°ü×°£¬¸½¼ÓһЩWLSÒªÓõÄÍ·ÐÅÏ¢¡£ÕâÖÖÇé¿öÏ£¬Ö±½ÓÓÃrequest.getRemoteAddr()
ÊÇÎÞ·¨È¡µ½ÕæÕýµÄ¿Í»§IPµÄ¡£
ʵ¼ÊµÄiisforward¸½¼ÓÍ·ÈçÏ£º
WL-Proxy-Client-IP=211.161.1.239 ......

java×ÔѧµãµÎ


String Óë StringBufferÇø±ð:
String×Ö·û´®¶ÔÏóÊDz»¿É±äµÄ£»StringBufferÊDZ䳤ºÍ¿ÉдµÄ¶¯Ì¬×Ö·ûÐòÁУ¬¿ÉÒÔ×Ô¶¯µØÔö¼Ó¿Õ¼ä¡£
Integer var = new Integer();//ÓÐÓï·¨´íÎó
Integer var = new Integer(2);//悦﵀
javaµÄVector³ÉÔ±ÊÇÒªÓÃelementAt(i)³ÉÔ±º¯ÊýÀ´»ñµÃµÄ£¬²»ÄÜÓÃve[i]µÃµ½¡£
Vector::public Enumeration& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ