Actionscript 3 :: Sockets Disconnected Automatically?

Mar 11, 2012

I created a Socket and a ServerSocket objects in as3, then I connected the socket using the connect method by passing to it a host and a port. Also I made the ServerSocket object listening for incoming connection from socket other than the socket I've just created. When the ServerSocket detects a connection and start receiving data, the socket object is disconnected automatically. So I want to know how to keep the connection alive in the socket object..

View 1 Replies


Similar Posts:


Media Server :: When One Client Closes Its Netconnection All The Other Clients Of The FMS Are Also Disconnected Automatically

Jan 1, 2011

I have a big issue with FMS 3.0 and specially with netconnections. Sometimes, when one client closes its netconnection, all the other clients of the FMS are also disconnected automatically. I am trying to find an explanation but nothing... It seems to be a bug as, most of the time everything works very well, but sometimes (not often) this strange behaviour happens. I don't know what to do and it's really annoying as it affects the reliability of my application.

View 10 Replies

Media Server :: How To Know Client Is Disconnected

Oct 27, 2010

There is a big problem in which i stuck .how to know that client has been disconnected if client pulls of cable or manuallu disconnect netconnection.

View 1 Replies

Media Server :: How To Know Disconnected Peer ID

May 6, 2011

I am developing a simple text chat application with fms4, for this application, i am using adobe stratus service for developing this application and i just want to know about disconnected peerID.

View 1 Replies

Media Server :: User Is Not Getting Disconnected From FMS On Using IE Until IE Is Closed

Sep 9, 2009

FMS: 3.5..User is not getting disconnected from FMS on IE until IE is closed. While it works on Firefox and Chrome.When a user logs out on Firefox and Chrome, the user connection of FMS is getting updated. But it doesn't work on IE until IE is closed.

View 10 Replies

Flash :: Channel Disconnected Error Message Again And Again - Builder 4?

Jul 8, 2010

I'm trying to use server capabilities Flash Builder 4. But using different ways (i use 5 or 6 tutorial) get one and the same error within a week - "Channel disconnected - Channel disconnected before an acknowledgment was received." I looked up "gateway.php" and there was not even a closing tag ?>. Error repeated on a remote server (of course I changed all the settings to the mySQL database). Network monitor also gives error.Show where I can find a solution, please? It may be to blame Zend? But how to update it?

View 2 Replies

Actionscript 3 :: Flash Builder Update Query - Channel Disconnected Before An Acknowledgement Was Received

Apr 1, 2010

I am trying to build my first CRUD application and cant get the update query to work. Here is the MXML and AS.

[Code]....

View 1 Replies

Media Server :: Find Client Disconnected When Client Lost Net Connection?

Oct 27, 2010

how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.

View 1 Replies

Playing With Sockets + IRC Server?

Jun 16, 2009

var s:Socket = new Socket( "127.0.0.1", 6667 );
s.writeUTFBytes( 'WEBIRC cgipass "cgiirc" this.is.testing.com 127.0.0.1' );
s.writeUTFBytes( "NICK DaBit
" );

[code]...
 
It works to a point, it pings out as if I never did PONG in response, but I never got the PING message which tells me I'm not listening in on the connection correctly. What do I need to do instead? Btw this is all I have, it's all on 1 frame.
 
Here is my Output thing:
 
Attemping to launch and connect to Player using URL C:Documents and SettingsDavidMy Documents est_socket.swf
[SWF] C:Documents and SettingsDavidMy Documents est_socket.swf - 3088 bytes after decompression
:127.0.0.1 NOTICE AUTH :*** Looking up your hostname...

[code]...

View 1 Replies

Php :: Php-Flash Communication Over Sockets?

Nov 5, 2009

I am not any kind of network programming pro, but it happened that I have faced necessity to develop socket-server on php (no way for using Java) for flash multiplayer browser-game (standard features like locations, team battles, etc).

The main problem is that TCP is point-to-point protocol and it completely occupies given port.Of course it is possible to create some kind of queue, which will manage connections to the socket, but this solution doesn't seems to be the fittest one.

It seems to me that using interval of "fair" ports (from 2000 to 2200, for example) is more fitting solution, because one request may take a lot of time to execute and players won't be happy to wait in queue.

But how can I implement this "port inteval" strategy?The solutions that I see are:

launcing php-script per every port (he-he, 2 hundreds of launched scripts!);somehow forking the initial process to new processes (2 hundreds of processed? Not nice too), one for every port;additional while-loop, which listens all the ports (looks very bad);using threading or something like that (the problem is that php is single-threaded, as far as I know; pcntl?).But somehow I don't like any of them, or at least don't know how to implement them in the best possible way.

What is the best existing strategy to handle multiple requests from multiple users per time unit without delays, and how to implement this strategy in php? We have our own Debian-server, so it is possible to use any required php extensions.

For example, if we are trying to develop chat application, we need some sort of fixed (I mean persistent) connections for each user. For example, we have 80 users in chat, and then one of them posted a message, which server tries to handle and send to all other connected users, also putting an entry to the history file or something like that.

In this situation polling server for new messages every 10 seconds from each of 80 users is craziness, so the need in persistent connection gets obvious.But I don't know what is the best way to implement something like this, considering that not all requests are handled instanlty.

View 2 Replies

Actionscript 3 :: Listen To Sockets Using It?

Jan 26, 2010

I was searching on google for it, I couldn't find it.

I would like to know how can I listen to sockets using actionscript 3

View 2 Replies

Flash :: Max. 3 Sockets From One Client?

Mar 26, 2011

I was trying to write a stress tester for my own protocol when I stumbled up on this problem.Anytime I create more than 4 connections from one PC Flash denies to receive anymore messages from the server although I'm still able to connect, and write messages.

View 1 Replies

WebSockets Vs Raw TCP Sockets In Flash

May 11, 2011

What WebSockets add to raw TCP connection?Why should I use WebSockets?I'll have only Flash clients, no need to support Javascript clients.

View 1 Replies

ActionScript 2.0 :: Any Way To Communicate Through Sockets In MX?

Dec 21, 2007

Is there a way I can communicate through sockets in flash mx? I'm really really interested in this domain..

View 2 Replies

ActionScript 2.0 :: Starting With XML Sockets?

Jul 18, 2004

I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, but now I'm running into some problems and I'm a bit confused! I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data.I wrote a small amount of code to try it out:

var server:XMLSocket = new XMLSocket();
server.connect("66.194.238.241",10000);
server.onConnect = function(success:Boolean) {[code].....

It seems to be connecting fine but when I click and I try my send.

View 2 Replies

Flex :: Sockets - Crossdomain.xml File And FTP?

Feb 18, 2010

I am trying to do a "hello world" level test of FTP in Flex, but for three days now, I cannot overcome the issue with how to coerce flex into accepting my crossdomain policy - even for testing purposes.Here is my code: The exact error text follows.

[Code]...

View 3 Replies

Flash - AMF Sockets Out Of Sync When Using ServerSocket In AIR?

Mar 2, 2011

I have two (+) systems on a local network running an AIR application that need to send/receive updated positions and other events between each other. I'm currently using an AIR-based socket server one of the instances. The AMF and strong typing works great. What doesn't, however, is the syncing between clients.

In my example below, clientA is trying to send an AMF packet to clientB. The SOCKET_DATA events fire off as expected on the server, in sync with the mouse, however the data that clientB receives very quickly gets out of sync and events are lost.

It's fine if an occasional event gets dropped, however I need to know the most recent SOCKET_DATA event has the latest data. Instead, it just contains increasingly older data.

Code Snippets:

clientA writeObject: (on MOUSE_MOVE to test large number of events)
protected function stage_mouseMoveHandler ( pEvent : MouseEvent ) : void
{

[code]....

View 1 Replies

Mysql :: Database - Connection With Sockets Or PHP?

Jan 9, 2012

So, we want to move out from Air (Adobe stopping support and really bad implementation for the sqlite api, among other things). I want to make 3 things:

Connect with a flash (not web) application to a local mysql database.
Connect with a falsh (not web) application to a remote mysql database.
Connect with a flash (web) application with a remote mysql database.

[Code]...

if you can connect with socket wit mysql server, why use a web server (for example with php) to connect like a inter connectioN? why not connnect directly? I have done this a lot of times, using AMFPHP for example, but wouldn't be faster going directly? In the case of accessing local machine, it will be a more simple deploy application that only require the flash application + mysql server, not need to also instal a web server.

View 2 Replies

ActionScript 2.0 :: Cross Domain XML Sockets?

Aug 11, 2009

I am currently building an XML Socket Server that I am running locally on my computer. My flash client I build as an executable that runs on your computer and connects to mine via port 9000. I want however, to be able to run the flash client as a .swf in a web page on my website. I have a security policy but I don't know if I am using it right. My server is extremely basic still, it has no admin controls or even authentication or anything, right now it just spits back what it is given essentially, while I test out things and stuff. I just don't know how to handle any cross browser stuff.

********************************************All my code works as is if the flash file is compiled as a .exe from any computer. I have tested that. It just doesn't work as a .swf in a web browser.********************************************The file currently is set to just have the user type in their name and then when they move their mouse, it shows up on all other clients with their names next it it. Basically testing a real time activity updates.Here is my code and other files:My config.xml file:

HTML Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<config>

[code]......

View 4 Replies

ActionScript 3.0 :: Sockets And Multiplayer Games

Nov 25, 2011

this question has been bugging me for a year. Basically I'm trying to replicate Club Penguin (multi-player game for kids who are their own penguin who play other penguins who are other kids online). So far Ive got it working: [URL]

but it creates a horrendous cache of XML as it simply sends and receives an xml file between players (poleing I believe). I want to convert this to a socket connection. However I really want to know: -do you need your own webserver (I have an old PC I can convert to one fine), but how do I set it up (php, Red5?) -the examples I have refer to old versions of Flah and sometimes use the (legendary Senoculars) class KeyObject.as So ~ I know what I want to do Ive got half way there anybody know the other half?

View 4 Replies

ActionScript 2.0 :: Communicate Through Sockets In Flash Mx?

Jan 21, 2003

it may be a stupid question what i'm going to ask, but i'll ask anyway ... just had an idea... is there a way i can comunicate through sockets in flash mx?

View 2 Replies

ActionScript 2.0 :: Xml Sockets And Direct Connections?

Feb 1, 2005

i wanted to make a game in which you play head to head with other people.. but before i get ahead of myself here..how to establish a server which receives info from all connected flash movies , and then sends it out to all the ones witch i want to? basically i was thinking of making a chat thing 1st of all and then depending on how difficult it is move on to my game idea..

View 5 Replies

ActionScript 2.0 :: Flash Directly Use Sockets?

Oct 29, 2006

As the title says, I would like to know if Flash 8 or any version of flash can access sockets.For instance like winsock does. Using an IP and a port to send packets? I've seen it can connect to databases, but I haven't seen anything with it working with sockets, for instance a P2P chat using only an IP and a port to send an receive messages.

View 1 Replies

ActionScript 2.0 :: Xml Sockets And Direct Connections

Feb 1, 2005

i wanted to make a game in which you play head to head with other people.. but before i get ahead of myself here..Any tutorials on how to establish a server which receives info from all connected flash movies , and then sends it out to all the ones witch i want to?basically i was thinking of making a chat thing 1st of all and then depending on how difficult it is move on to my game idea..

View 5 Replies

ActionScript 3.0 :: One Way Text Communication Via Sockets - AIR / HTML5

Sep 9, 2011

I'm able to connect, able to send a message from HTML 5 to the AIR socket server and have the server see that there is an inbound message and even see that there are more or less bytes available based on the size of the message, but am unable to see the content of the message sent through. I'm just trying to send one-way text communication via sockets from HTML 5 to an AIR app. Why I can't see the actual content of the message? I'll attach my AS3/AIR (Flash Pro CS5) code and my HTML/JS code.

View 1 Replies

Flash :: Professional - Use The Sockets - Setup Server?

Feb 10, 2010

i'm trying to develop a multiplayer game in AS3, but i don't know how to use the sockets, how to set up my server, actually i don't know how to start, i want to build a peer to peer game, which will have a "room" to find players, it will be a cars game, i already have all the rest of the game, i just need to be able to make it multiplayer

View 3 Replies

Php :: Flex Sockets Not Sending Data On Windows?

Sep 17, 2010

I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages.When I send a message on my Mac it goes through to the server and gets sent to all the clients, including any Windows client I may have connected. The message will actually display on Windows clients as well, it's only when I try sending from Windows that it doesn't work.

I've tried adding a crossdomain.xml file served by a PHP script listening on the correct port, but none of the clients ever seem to ask for it, and if the client works on Mac I assumed it should work on Windows. By the way I'm exporting the project as an AIR file (dunno if that makes a difference).I can't find anything regarding this so I'm wondering if I'm being stupid somewhere or whether I need to takes some special measures for Windows clients?I have pasted my client code below.

import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;[code]......

View 1 Replies

HTML5 Web Sockets (TCP Connection) With Flash Fallback

Sep 20, 2010

I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method.

View 1 Replies

Http - Node.js And Sockets For Browser And Flash?

May 12, 2011

doing a project where the deviceorientation-data from smartphones get transfered to a socketserver, and from there to a flash-application.Now creating a http-server with nodejs wasn't too hard, and connecting from a smartphone via browser and transfering the data with socket.io worked fine.The problem comes with flash, i couldn't manage to connect my flash application to the http-server running socket.io. I figured out when i run a node tcp-server connecting from flash is no problem, but i have no more session management and i can't connect from the browser anymore.

View 1 Replies

C++ :: Recombine Split TCP Packet With Flash Sockets?

May 20, 2011

I have a program in c++ that sends a socket of 23723 bytes to a flash player in one "shot".The flash player sometimes receives two packets of size 17520 and 6203, and other times it receives a single packet of 23723.

EDIT: There does not seem to be a way to obtain the total number of bytes associated with the send data from flash. This would make it very difficult to build a loop to reconstruct the "broken" packet.I thought TCP was supposed to correctly recombine the packets and I am having difficulty recombining them myself.This is my receiving handler in flash:

var socket:Socket = new Socket();
socket.addEventListener(Event.CONNECT, socketConnectHandler);
socket.addEventListener(ProgressEvent.SOCKET_DATA, socketDataReceivedHandler);[code]...

will at times print 23723, and at other times, will print 17520 quickly followed by 6203. The total size are just examples and are subject to change for each send sockets. Also many sockets can be sent or received at the same time, so the split packets can be inter-mixed. In c++ I could determine what the total size of the sent data was, even if I did not receive the whole sent data yet.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved