flash C# Socket
2009-09-01 17:33ÔÚ.netÖж¨ÒåÒÔÏÂ
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace ClientSocket
{
public class AsynchronousSocketListener
{
//Òì²½socketÕïÌý
// Incoming data from client.´Ó¿Í»§¶Ë´«À´µÄÊý¾Ý
public static string data = null;
// Thread signal.Ïß³Ì ÓÃÒ»¸öָʾÊÇ·ñ½«³õʼ״̬ÉèÖÃΪÖÕÖ¹µÄ²¼¶ûÖµ³õʼ»¯ ManualResetEvent ÀàµÄÐÂʵÀý¡£
public static ManualResetEvent allDone = new ManualResetEvent(false);
public AsynchronousSocketListener()
{
}
public static void StartListening()
{
// Data buffer for incoming data. ´«ÈëÊý¾Ý»º³å
byte[] bytes = new Byte[1024];
// Establish the local endpoint for the socket. ½¨Á¢±¾µØ¶Ë¿Ú
// The DNS name of the computer
// running the listener is "host.contoso.com".
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostInfo.AddressList[0];
IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 11001);
// Create a TCP/IP socket.
Socket listener = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp );
// Bind the socket to the local endpoint and listen for incoming connections.°ó¶¨¶Ë¿ÚºÍÊý¾Ý
try
{
listener.Bind(localEndPoint);
listener.Listen(100);
while (true)
{
// Set the ev
Ïà¹ØÎĵµ£º
http://www.52rd.com/Blog/Detail_RD.Blog_foxice_10404.html
http://www.foxice.net/techinfo_nandboot1.asp
Ò»ÖÖNAND FLASH×ÔÆô¶¯µÄз½·¨
foxice ·¢±íÓÚ 2007-8-27 15:29:00
1
Òý
ÑÔ
Ëæ×ÅÏû·ÑÀàµç×Ó²úÆ·°üÀ¨ PDA £¬ MP3
¡¢ÖÇÄÜÊÖ»úµÈÊÖ³ÖÉ豸µÄÊг¡ÐèÇóÖð²½À©´ó£¬²úÆ·¼äµÄ¾ºÕùÒ²Óú·¢¼¤ÁÒ£¬½µµÍ²úÆ·µÄÉè¼ ......
½üÈÕJohn Lindquist̸µ½ÁËÔÚΪRoundarch¹«Ë¾ÕÐÆ¸Flash/Flex¿ª·¢ÈËԱʱµÄһЩ¸ÐÊÜ¡£ËûÈÏΪ×îÄѵĵط½ÔÚÓÚÎÊʲôÎÊÌâ²ÅÄÜ×îºÃµØÁ˽⵽ӦƸÕßµÄFlash/Flex¿ª·¢¼¼ÄÜ¡£Òò´Ë£¬Ëû¸ø³öÁËÒ»¸öÁÐ±í²¢Ëµµ½£º“¸ù¾ÝÎҵľÑ飬ͨ¹ýÕâ¸öÁбíÄܸüºÃµØÅжÏÃæÊÔÕߵļ¼ÊõˮƽºÍ¾Ñ锡£
±¾Îľͽ«¸ÅÒªµØ½éÉÜFlash¿ª·¢ÕßÐèÒªÖªµÀµÄ10 ......
<div class="ad2">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
widt ......
1¡¢DateTime Êý×ÖÐÍ
System.DateTime currentTime=new System.DateTime();
1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë
currentTime=System.DateTime.Now;
1.2 È¡µ±Ç°Äê
&nb ......
ÖÇÄÜÕÕÃ÷¿ØÖÆÏµÍ³ÔÚ²âÊÔʱ£¬ÐèÒªÁ¬½ÓºÜ¶à¸ö¾ßÌåµÄµÆ¾ß£¬·Ç³£Âé·³£¬Áé»îÐÔ²»×ã¡£
ÎÒÏëÔÚµçÄÔÉÏÔËÐÐÒ»¸öFLASH£¬À´Ä£ÄâµÆ¹âµÄ¿ª¹ØºÍµ÷¹â¡¢´°Á±µÄ¿ØÖƵȲÙ×÷¡£µ±ÕæÊµµÄCAN×ÜÏßÉϵÄÃæ°å/Ä£¿é±»²âÊÔÈËÔ±»òÌåÑéÕß²Ù¿ØÊ±£¬Í¨¹ýCAN×ÜÏߺÍCAN/IPת»»Æ÷£¬ÏòÁ¬½ÓÔÚIPÍøÉϵĵçÄÔ·¢³öÐÅÏ¢£¬Õâ¸öÐÅÏ¢½«Çý¶¯FLASH²¢²úÉú±ä»¯¡£
È磺ÏÂÍ¼ÎªÒ ......