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
Ïà¹ØÎĵµ£º
ODBC DSN
ODBC -- New Microsoft Driver
ODBC -- Old Microsoft Driver
ODBC -- Oracle Driver
OleDb -- Microsoft Driver
OleDb -- Oracle Driver -- Standard Connection
OleDb -- Oracle Driver -- Trusted Connection
.NET DataProvider from Microsoft -- Standard Connection
.NET DataProvider fr ......
public string NoExcuteHtml(string Htmlstring)
{
string x = string.Empty;
x = Htmlstring.Replace(@"&", "&");//½«&ÉèÖÃΪ±£Áô×Ö
x ......
»úÆ÷ÄÚ²¿ÓÐÒ»²¿·Öflash¹©¿Í»§Ê¹Óã¬Í¬Ê±»úÆ÷Ö§³Ösd¿¨¡£µ±²åÈësd¿¨Ê±ºòflashÄÚ²¿ºÍsd¿¨ÄÚ²¿µÄ¶àýÌ嶼¿ÉÒÔ±»²¥·ÅÆ÷ʶ±ð£¬Ò»µ©°Îµôsd¿¨£¬ÔòflashÄÚµÄýÌå¶Ô²¥·ÅÆ÷Ò²²»¼ûÁË¡£
½â¾ö·½·¨£º
ÐÞ¸Äframeworks/base/services/java/com/android/server/MountService.javaÎļþµÄº¯Êý£ºnotifyMediaBadRemovalÈçÏ£¬ºìɫΪÌí¼Ó¡£
mCon ......
Èç¹ûÄú¿´ÁËÎÒµÄÉÏһƪ²©ÎÄ£¬Äú¾ÍÓ¦¸ÃÁ˽âFlash PlayerÔËÐÐʱµÄ֡ƵºÍTimer¼ÆʱÊDz»¾«È·µÄ£»ÆäÔÒòÖ®Ò»ÊÇAVMÐéÄâ»úÿ´Î·ÖÅäµÄʱ¼äƬ¼ä¸ô²»ÊÇÒ»¸ö¹Ì¶¨µÄÖµ£»ÁíÒ»¸öÔÒòÔò¿ÉÄÜÊÇÒ»´Îʱ¼äƬËùÔËÐеĴúÂë½Ï´ó£¬Èç¹ûÒ»¸öʱ¼äƬµÄʱ¼äÖ´Ðв»Í꣬Ôòʱ¼äƬ¾Í»áÑÓ³¤²¢Õ¼ÓúóÃæµÄʱ¼äƬ¡£
ÔÚÕâƪÎÄÕÂÀÎÒ¸ø“ʱ¼äƬִÐв»Íê¶øÑ ......