开发学院图形图像Flash 连接fms的几种返回状态 阅读

连接fms的几种返回状态

 2009-01-12 19:17:20 来源:WEB开发网 闂備線娼уΛ鎾箯閿燂拷闂備礁鎲¢崹鐢垫崲閹扮増鍎嶆い鎺戝€甸崑鎾斥槈濞嗗秳娌紓鍌氱▌閹凤拷濠电姭鎷冮崨顓濈捕闂侀潧娲ゅú銊╁焵椤掍胶鈯曢柕鍥╁仧缁辩偤鏁撻敓锟�闂備線娼уΛ鎾箯閿燂拷  闂備胶枪缁绘鈻嶉弴銏犳瀬闁绘劕鎼痪褔鏌曟繝蹇曠窗闁煎壊浜滈—鍐偓锝庡墮娴犙勭箾閸喎鐏ユい鏇樺劦椤㈡瑩鎮℃惔銇帮拷
核心提示:有以下这几种返回:1、NetConnection.Call.Failed ErrorNetConnection.call() 调用服务器端方法失败,返回的info对象包含一个具体的调用失败说明,连接fms的几种返回状态,for in一下可以看到,2、NetConnection.Connect.AppShutdown E

有以下这几种返回:
1、NetConnection.Call.Failed Error
NetConnection.call() 调用服务器端方法失败。返回的info对象包含一个具体的调用失败说明。for in一下可以看到。

2、NetConnection.Connect.AppShutdown Error
服务器端应用程序因为一些原因被关闭(过度占用server端资源),或者服务器已经被关闭。

3、NetConnection.Connect.Closed Status
连接中断。

4、NetConnection.Connect.Failed Error
连接失败。如FMS 没有启动。

5、NetConnection.Connect.InvalidApp Error
targetURI中rtmp://[ip或domain]/[appName]
其中appName不存在。

6、NetConnection.Connect.Rejected Error
连接被拒绝 原因:
targetURI指定的application不充许client连接,或者传递给应用程序的参数不对,也可能是server应用程序直接拒绝连接(可以在appName文件夹中写一个ASC文件做到)
这时,info对象有一个application属性,包含服务器方法application.rejectConnection()的返回值。
client在被拒绝后会马上再收到一个NetConnection.Connect.Closed的信息。

7、NetConnection.Connect.Success Status
连接成功。
当返回是NetConnection.Connect.Fail时,可以从下面几个方面思考原因:
Are you connecting to the correct server?
Is the server running?
Are you specifying the PRotocol (rtmp:) for connecting to the server?
If you are connecting from behind a firewall, are you specifying the correct protocol (rtmpt:)?
Attempts to connect to the server can also fail if the permissible number of socket connectionson either the client or the server computer is at its limit. This limit is ependent on how much physical memory your server has, and how busy the connections are. On Windows systems,the memory for socket connections is allocated out of the non-paged memory, so it cannot beswapped out to a page file. You may see that you reach the maximum limit at different valuesfrom time to time as other running programs (such as core Operating-system services) arecompeting with your program for space in the non-paged memory pool.

Tags:连接 fms 返回

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接