在Flash& amp;之间发送和接收数据C#程序 [英] Send and Receive Data Between Flash & C# program

查看:66
本文介绍了在Flash& amp;之间发送和接收数据C#程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是套接字的新手,我想问一下如何从Flash向C#(控制台程序)以及从C#向Flash发送和接收数据. C#作为服务器,Flash作为客户端(许多Flash客户端连接到1个c#程序)? (不使用XML,仅在Flash中使用动作脚本)

I''m new in socketing, I want to ask how can I send and receive data from flash to C#(console program) and from C# to flash. C# as a server and flash as client (many flash client connect to 1 c# program)? (without using XML, only using action script in flash)

推荐答案

阅读以下内容:
http://www.giantflyingsaucer.com/blog/?p=15 [ http://forums.adobe.com/thread/97721 [
Read these :
http://www.giantflyingsaucer.com/blog/?p=15[^]

http://forums.adobe.com/thread/97721[^]


在C#端使用TcpListener,并在flash.net.Socket [
Use a TcpListener on the C# side, and a flash.net.Socket[^] on the Flash side. If you have a specific protocol for the data you want to send, you will need to implement that on both sides.

I have a functional version of the client part of my socket library in Flash (AS3), minus the RSA portion (I couldn''t find that in the libraries). If you start from a working C# socket implementation the Flash version is quite similar, once you hook up the events as the example shows.

Don''t forget to put a crossdomain.xml on your site if the Flash is externally hosted, otherwise you won''t be able to connect.


这篇关于在Flash& amp;之间发送和接收数据C#程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆