Jump to content

Adobe Flash Client and LabVIEW server


Recommended Posts

Hi everyone! I've got one important question, on which I can't find the answer.The point is I've got server, made in LabVIEW, and a client, made in Adobe Flash CS5, and they have to send data to each other. But when Adobe Flash Player 10 connects to server, first of all, it sends such string - <policy-file-request/>, and when server gets this string, it must send such called "policy file" - <cross-domain-policy><allow-access-from domain="*" to-ports="*" secure="false"/><site-control permitted-cross-domain-policies="master-only" /></cross-domain-policy>+Chr(0). Then client (Flash Player) dissconnects from the server, and connects again, and sending data goes without any policy file. But unfortunatelly, my server doesn't want to get this string - I've got error "Not enough memory". What I have to do, to make my server get the policy file request, and send answer to client? Please, help me, if you know what to do. The link to Adobe Flash client is below - http://noggit.zs9.ru/net_swf.swf, LabVIEW server also is attached. I don't want to use WebService, because I have to use simple TCP/IP "talking", and LabVIEW VI, from which I have to send data to broser is very difficult, and includes much variables to send.

I'm looking forward for your help!

P.S. Sorry for my English.

Server.vi

Link to post
Share on other sites

You did not follow the advice given here: http://labviewportal.eu/viewtopic.php?f=21&t=3523

So let me repeat it. First of all - disconnect "Service name" (as shown). It does not specify the interface to listen on.

Second: check that you get the length (the first 4 bytes you are reading in correct byte order). This could be the cause of the memory error.

post-2886-0-38546900-1307819102_thumb.pn

Link to post
Share on other sites

I followed your advise, and I appreciate it, but it didn't helped me. When I disconnected "Service name" and read bytes directly, without getting the length of the message, there is no error, but server doesn't see a string message - the length of string is 0. What I have to do?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.