如何运行Haxe服务器和客户端的例子? [英] How to run the Haxe server and client example?

查看:166
本文介绍了如何运行Haxe服务器和客户端的例子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想尝试从这里运行示例:

http://old.haxe.org/doc/flash/chat



但是我不知道如何运行。



我只是输入

  haxe app.hxml 

我不知道如何继续。

有人能告诉我如何运行吗?运行 haxe app.hxml 创建两个文件:<$ c $ c> server.n client.swf



双击 server.bat (它通过 neko server.n 来启动服务器)。现在任何数量的客户端都可以连接到服务器。对于测试,只需使用独立的Flash Player运行 client.hx 两次即可。在每个窗口中输入用户名后,您在任一客户端上提交的任何消息都会显示在另一个客户端上。


$ b


I am new to Haxe.

I want to try to run the example from here:

http://old.haxe.org/doc/flash/chat

but I do not know how to run.

I just type

haxe app.hxml

and I have no idea how to continue.

Could someone tell me how to run it?

解决方案

Running haxe app.hxml creates two files: server.n and client.swf.

Double click server.bat (which just starts the server via neko server.n). Now any number of clients can connect to the server. For testing, just run the client.hx twice with the standalone Flash Player. After you've entered a user name in each window, any message you submit on either client will appear on the other client as well.

这篇关于如何运行Haxe服务器和客户端的例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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