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

C++ºÍflexʵÏÖÁÄÌìÊÒ¹¦ÄÜ

¹«Ë¾°²ÅÅ¿ªÊ¼×ö·þÎñÆ÷£¬Ã»ÓнӴ¥¹ýÕâЩ¶«Î÷¡£´ÓÁ㿪ʼѧϰ¡£
ÏîÄ¿ÊÇ×ö¸öÁÄÌìϵͳ¿Í»§¶ËÓÃflex£¬·þÎñÆ÷ÓÃC++£¬ÈÃÎÒÏȳöDemo¡£
·þÎñÆ÷²¿·Ö²ÎÕÕWindowsÍøÂç±à³ÌÒ»ÊéÖеÄselectÀý×Ó£¬»ù±¾Ò»Ñù£¬Ö»ÊÇ°ÑÀý×ÓÖеĵĵ¥¸ö»ØÓ¦ÏûÏ¢¸Ä³ÉÁËȺ·¢ÏûÏ¢¡£
ËäÈ»ÎÒ¶ÔselectÄ£ÐÍ»¹²»ÊìϤ£¬µ«ÊÇÎÒÖªµÀÈç¹ûÒªÔÚÒ»¸öÌ×½Ó×ÖÉÏ·¢ÏûÏ¢¾Í±ØÐëÉèÖÃFD_SET    WriteSet£¬Èç¹ûÒªÔÚÒ»¸öÌ×½Ó×ÖÉ϶ÁÏûÏ¢¾Í±ØÐëÉèÖÃFD_SET    ReadSet£¬ÉèÖþÍÊǵ÷Óú¯ÊýFD_SET(SOCKET S, FD_SET* Set)¡£(¾ÍÒòΪÃ÷°×ÁËÕâÒ»µã²Å¸Ä³öÁËȺ·¢)
Ä£Ðͺöడ£¬ÂýÂýѧ¡£
ÏÈÌù´úÂë
·þÎñÆ÷ CSelectIO Àà ¾ÍÊǸÄдÁËÊéÉϵÄÀý×Ó
SelectIO.h:
class CSelectIO
{
public:
CSelectIO(void);
virtual ~CSelectIO(void);
public:
bool Init(int port);
private:
void Strat();
void Send();
bool CreateSocketInformation(SOCKET s);
void FreeSocketInformation(DWORD Index);
private:
int TotalSockets;
LPSOCKET_INFORMATION SocketArray[FD_SETSIZE];
SOCKET ListenSocket;
SOCKET AcceptSocket;
SOCKADDR_IN InternetAddr;
WSADATA wsaData;
FD_SET WriteSet;
FD_SET ReadSet;
DWORD Flags;
DWORD SendBytes;
DWORD RecvBytes;
DWORD Total;
WSABUF SendDataBuf;
};
SelectIO.cpp:
#include "StdAfx.h"
#include "SelectIO.h"
CSelectIO::CSelectIO(void)
:TotalSockets(0)
{
}
CSelectIO::~CSelectIO(void)
{
}
bool CSelectIO::Init(int port)
{
//³õʼ»¯
int ret;
if ((ret = WSAStartup(0x0202,&wsaData)) != 0)
{
printf("WSAStartup() failed with error %d\n", ret);
WSACleanup();
return false;
}
//´´½¨¶Ë¿Ú
if ((ListenSocket = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_OVERLAPPED)) == INVALID_SOCKET)
{
printf("WSASocket() failed with error %d\n", WSAGetLastError());
return false;
}
InternetAddr.sin_family = AF_INET;
InternetAddr.sin_addr.s_addr = htonl(INADDR_ANY);
InternetAddr.sin_port = htons(port);
//°ó¶¨
if (bind(ListenSocket, (PSOCKADDR) &InternetAddr, sizeof(InternetAddr))
== SOCKET_ERROR)
{
printf("bind() failed with error %d\n",


Ïà¹ØÎĵµ£º

flex ¿Í»§¶Ë·ÖÒ³

Main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:file="file.*">
<mx:Script>
<!--[CDATA[
import simPager.PagerEvent;
import mx.collections.ArrayCollection;
[Bindable]
priv ......

ÔÚFlexÖеĸü¸Ä¹ö¶¯ÌõµÄÍâ¹Û

HScrollBar {
downArrowUpSkin:
Embed(source=”/assets/downArrow.png”);
downArrowOverSkin:
Embed(source=”/assets/downArrow.png”);
downArrowDownSkin:
Embed(source=”/assets/downArrow.png”);
upArrowUpSkin:
Embed(source=”/assets/upArrow.png”);
upArro ......

flex+java

1.ÎÒµÄÅäÖû·¾³Îª:
  flexBuilder3,LCDS251,MyEclipse 5.5.1
GA+
2.°²×°lcds2.5.1£¬´ò¿ªÄ¿Â¼£¬ÀïÃæÓÐÒ»¸öflex
.war
3.¹Ø±Õtomcat(Èç¹û´ò¿ªÔڵĻ°)
4.½«flex
.war¿½ÈëtomcatµÄwebappsĿ¼
5.ÖØÆôtomcat,¿ÉÒÔ¿´µ½webappsÀï¶àÁËÒ»¸öĿ¼flex
£¬Õâ±ãÊÇÎÒÃÇÒªµÄ¶«Î÷
6.¿ÉÒÔ½«flex
.warɾ³ý
7.½«flex
Îļ ......

FABridge½Ì³Ì(Flex+Ajax) 2

ʹÓÃjsÀ´²Ù×÷flex
Ê×ÏÈÔÚfademo.mxmlÖÐÉùÃ÷Ò»¸öbutton£¬²¢Ìí¼ÓÒ»¸öbtnClick·½·¨£º
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="l ......

MyEclipse6.5ÓëFlex Builder 3ÕûºÏ°²×°·½·¨

MyEclipse6.5ÓëFlex Builder 3ÕûºÏ°²×°·½·¨
×î½üÏëѧϰÏÖÔÚ×îÈÈÃŵĸ»¿Í»§¶Ë¼¼Êõflex£¬ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin(FB3_WWEJ_Plugin.exe)×¼±¸°²×°.µ«ÊÇ°²×°ºóÆô¶¯Eclipse,ÕÒÁË°ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Êæ·þ. ËùÒÔÎÒ×Ô¼ºÏëÁËÒ»¸ö°ì·¨£¬ÓÃMyEclispe6.5ÓëFlex Builder ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ