K
Krupa
Hi All,
I am working on a CF 2.0 C# application for windows CE 5.0 device. My
application has a socket server feature in it and we have a Flash
application as a socket client.
The Flash client connects to the C# server and data flows between
them. At some point in time, the C# app has to close the Flash movie
and restart it at a later point in time. Here lies the issue. When the
C# app relaunches the swf, the swf starts looking for the server. But
the server stops listening to clients any more. I tried shutting down
and closing the socket object and creating that object (with the same
name) again and start listening, but it gave me a socket exception. Is
it not legal to recreate the socket object with the same name? How
else can I go about it? I cannot use new names each time I create
socket object. Also, I cannot use different IP address or port numbers
as they are hard-coded in Flash.
Thanks,
Krupa
I am working on a CF 2.0 C# application for windows CE 5.0 device. My
application has a socket server feature in it and we have a Flash
application as a socket client.
The Flash client connects to the C# server and data flows between
them. At some point in time, the C# app has to close the Flash movie
and restart it at a later point in time. Here lies the issue. When the
C# app relaunches the swf, the swf starts looking for the server. But
the server stops listening to clients any more. I tried shutting down
and closing the socket object and creating that object (with the same
name) again and start listening, but it gave me a socket exception. Is
it not legal to recreate the socket object with the same name? How
else can I go about it? I cannot use new names each time I create
socket object. Also, I cannot use different IP address or port numbers
as they are hard-coded in Flash.
Thanks,
Krupa