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
Ïà¹ØÎĵµ£º
¶ÔÓڴ󲿷ÖFlash¿ª·¢Õߣ¬¶¼ÒѾ֪µÀFlashµÄ֡Ƶ¡¢Timer¼Æʱ²¢²»ÊÇÊ®·Ö¾«È·µÄ¡£Èç¹ûÄúÒѾ×ö¹ýÕâ·½Ãæ²âÊÔ£¬¿ÉÒÔÂÔ¹ýÕâƪÎÄÕµÄÇ°ÃæÒ»²¿·Ö£¬ÔÚºóÃæÓйØÓÚFlash Player¿É±äÅܵÀµÄÎÄÕÂÁ´½Ó£¬Ï£Íû¶ÔÄúÓаïÖú¡£ÕâƪÎÄÕµÄÖ÷ҪĿµÄÊÇÈÃһЩ²»ÖªµÀFlash¼Æʱ²»¾«È·ºÍÖªµÀµ«ÓÖûÓÐ×ö¹ý²âÊÔµÄÅóÓÑ£¬À´·ÖÏíÎҵIJâÊÔ½á¹û¡£ÎÒʹÓõÄFlex¿ª ......
<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 ......
C#Á¬½ÓÁ¬½ÓAccess
Ê×ÏÈ¿´Ò»¸öÀý×Ó´úÂëƬ¶Ï:
³ÌÐò´úÂë:
--------------------------------------------------------------------------------
using System.Data;
using System.Data.OleDb;
......
string strConnection="Provider=Microsoft.Jet.OleDb.4.0;";
strConnection+=@"Data Source=C:\BegASPNET\Northwin ......
¡¡¡¡ÓÉÓÚÓëAdobeÔÚFlashÎÊÌâÉϲ»Ô¸×öÈκÎÍËÈã¬Ä¿Ç°Æ»¹û¹«Ë¾ÕýÔÚ¿ª·¢FlashµÄÌæ´úÐͲúÆ·£¬Ä¿Ç°ÔÝʱÃüÃûΪGianduia£¬ÎÒÃÇÔڿɿɹûwww.kekeguo.comÆ»¹ûÂÛ̳×ÉѯÖÐÒ²¿ÉÁ˽⵽ƻ¹û¹«Ë¾½«»áÔÚ6Ô·ݾÙÐеÄWWDC´ó»áÉ϶ÔGianduia½øÐÐÏêϸµÄ˵Ã÷¡£
¡¡¡¡¾ÝϤ£¬GianduiaÆäʵÔÚÈ¥ÄêµÄWebObjects¿ª·¢Õß´ó»áÉϾÍÒѾ·¢²¼ÁË£¬¶øÆ»¹ûµÄ²¿· ......