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
Ïà¹ØÎĵµ£º
C#Á¬½ÓÁ¬½ÓAccess
Ê×ÏÈ¿´Ò»¸öÀý×Ó´úÂëƬ¶Ï:
³ÌÐò´úÂë:
--------------------------------------------------------------------------------
using System.Data;
using System.Data.OleDb;
......
string strConnection="Provider=Microsoft.Jet.OleDb.4.0;";
strConnection+=@"Data Source=C:\BegASPNET\Northwin ......
NAND FLASHºÍNOR FLASHÏê½â
NOR FLASHºÍNAND FLASHÊÇÏÖÔÚÊг¡ÉÏÁ½ÖÖÖ÷ÒªµÄ·ÇÒ×ʧÉÁ´æ¼¼Êõ¡£
INTELÓÚ1988ÄêÊ×ÏÈ¿ª·¢³öNOR FLASH¼¼Êõ£¬³¹µ×¸Ä±äÁËÔÏÈÓÉEPROMºÍEEPROMһͳÌìϵľÖÃæ¡£
1989Ä꣬¶«Ö¥¹«Ë¾·¢±íÁËNAND FLASH½á¹¹£¬Ç¿µ÷¸üµÍµÄ³É±¾£¬¸ü¸ßµÄÐÔÄÜ£¬²¢ÇÒ¿ÉÒÔÏó´ÅÅÌÒ»Ñùͨ¹ý½Ó¿ÚÇáËÉÉý¼¶¡£
µ«ÊǾ¹ýÁËÊ®¶àÄêÖ®ºó£¬È ......
1¡¢DateTime Êý×ÖÐÍ
System.DateTime currentTime=new System.DateTime();
1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë
currentTime=System.DateTime.Now;
1.2 È¡µ±Ç°Äê
&nb ......
ѧϰFlash ѧһµãÎïÀí¶ÔflashÓкܴó°ïÖú£¬¹ØÓÚflashÓëÔ˶¯Ñ§µÄһЩ֪ʶÔÚmake thing move×÷ÕßÀïÃæÒѾºÜÏêϸÌṩÁË¡£ÎïÀíÀ´½²£¬¸öÈËѧµÃ±È½Ï²î£¬ÖÐѧʱ´ú»ù±¾ÉÏÊÇÎïÀí°×³Õ£¬ºÁÎÞÎïÀíµÄ˼ά¡£²»µÃ²»ÖØÐÂÈ¥ÍøÕ¾ËÑË÷һЩ¸ÅÄîȥѧ»ØÕâÖÖÔ˶¯Ñ§¡£¶ÔÓÚÎïÀíµÄ½éÉÜ£¬²»ÄÜÈ¥Å×Êé°ü£¬Ö»ÄܼǼһϱʼÇÓÃ×÷ÈÕºóʹÓá£
ÉÏ ......