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

flex socket .netµÄÁ´½Ó

http://www.cnblogs.com/beniao/archive/2009/01/12/1373921.html
ÎÞ·¨ÔËÐÐÈçÉϲ©¿ÍµÄ´úÂ룬ÓÚÊÇ×Ô¼ºµ½ÍøÉÏÕÒ×ÊÁÏ
·¢ÏÖÔÚhttp://hi.baidu.com/littlelaa/blog/item/bdea73f2382289a6a50f5241.html
¹Ø¼üÊÇC#ÖÐREADLINEÕâ¸ö·½·¨ÎÞ·¨ÔÚÈýÃëÄÚ¶ÁÈ¡£¬ÒòΪ½áβûÓÐ/N /RµÈ×Ö·û¡£
C#¶Ë
using System;
using System.Net.Sockets;
using System.IO;
using System.Net;
using System.Text;
namespace socketWin
{
class Program
{
static void Main(string[] args)
{
TcpListener listener = null;
TcpListener listener2 = null;
string strXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\"/></cross-domain-policy>\0";
try
{
Int32 port = 5000;
IPAddress localAddr = IPAddress.Parse("127.0.0.1");
listener = new TcpListener(localAddr, port);
int port843 = 843;
listener2 = new TcpListener(localAddr, port843);
//listener = new TcpListener(8888);//²»ÄÜÖ±½ÓÓô˶¨Òå½á¹û0.0.0.0:8888 ,»·¾³vs2008ÆäËûΪ²âÊÔ¹ý
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return;
}
listener2.Start();
listener.Start();
Console.WriteLine("·þÎñÆ÷Æô¶¯,µÈ´ý¿Í»§¶ËÁ¬½Ó.");
bool loop = true;
bool t1 = true;
while (loop)
{
if (t1)
{
Socket s1 = listener2.AcceptSocket();
NetworkStream ns1 = new NetworkStream(s1);
StreamReader reader1 = new StreamReader(ns1);
string result1 = string.Empty;
try
{
char[] ch = new char[22];
reader1.Read(ch, 0, ch.Length);
S


Ïà¹ØÎĵµ£º

FlexÒ³ÃæÌøת

Æäʵ¶ÔÓÚÕâ¸öÌâÄ¿ÊDz»Ç¡µ±µÄ£¬ÒòΪflexÖÐÊÇûÓÐÒ³ÃæÕâ¸ö¸ÅÄîµÄ£¬Ò³ÃæÔÚflexÀïÃæÆäʵ¾ÍÊÇÒ»¸ö¸öµÄCanvas£¬vbox£¬
hboxµÈµÈÖ®ÀàµÄ¶«Î÷£¬¿´µ½µÄ²»Í¬Ò³ÃæµÄÇл»£¬¾ÍÊÇÕâЩԪËØÒ»²ã²ãµÄ¶Ñ»ý£¬»òÕßÌæ»»£¬µ«ÊÇΪÁ˺ÃÀí½â£¬»¹ÊdzÆ֮Ϊ
"Ò³ÃæÌøת"¡£ÆäʵÎÒÃÇ¿ÉÒԶԱȴ«Í³µÄC/S¿ª·¢Ä£Ê½£¬Ã»Ò³ÃæÌøת£¬Ö»Óд°ÌåºÍÔª¼þµÄÏÔʾºÍÒþ²Ø¡ ......

ÔÚflexÖÐʹÓÃǶÈëhtmlÎļþÒÔ½â¾öÏÔʾhtmlµÄÎÊÌâ

ÏëÔÚflexÖÐÕæʵµÄÏÔʾhtml,µ«ÊÇtexteara,lable,textÖÐÖ»Ö§³Ö²¿·Öhtml±êÇ©
<a>¡¢<b>¡¢<br>¡¢<font>¡¢<img>Èç¹ûÓÃimgÓÖ´æÔÚÏÔʾ×Ô¶¯»»ÐеÄÎÊÌâ¡£Ö»ÓвÉÓÃǶÈëhtmlµÄ·½·¨À´½â¾ö¡£
1.flexdemo1
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe ......

FLEXºÏ²¢Êý×é

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script><!--[CDATA[import mx.collections.ArrayCollection;
public var a1:ArrayCollection = new ArrayCollection ([{ Region:"Region1",Territory:"Territory1",Ter ......

¹ØÓÚFlex°²È«É³ÏäÎÊÌâµÄ½â¾ö

×î½üÓöµ½ÁËflex µÄ°²È«É³ÏäÎÊÌ⣬ÕÒÁ˺ܶà×ÊÁÏ·¢ÏÖ²»ÊǶ¼ÊǺÍÎÒ£¬ÎҵijÌÐòÐèÒªsocketÁ¬½Ó£¬¶ø´ó¶àÊý½²µÄ¶¼ÊÇ¿çÓòÎļþ¶ÁÈ¡µÄ¡£ÎÒÏÈ°ÑÁ½ÖÖ·½·¨¶¼×ܽá³öÀ´£º
¿çÓòÎļþ¶ÁÈ¡
·½·¨Ò»£ºÔÚÄ¿±ê·þÎñÆ÷Éϲ¼Êðcrossdomain.xmlÎļþ(ÎÒÓõĴ˷½·¨ºÜ¹ÜÓ㬷ÅÉϾÍûÎÊÌâÁË) ÐèÒªÔ¶³Ì·þÎñ¸ùĿ¼¶¨ÒåÓÐcrossdomain.xmlÎļþ£¬ÈçÏ£º
<?x ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ