You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/04/10 15:29:22 UTC

[GitHub] [royale-asjs] JamesPengTW commented on issue #416: Does Royale have a Socket method in the future?

JamesPengTW commented on issue #416: Does Royale have a Socket method in the future?
URL: https://github.com/apache/royale-asjs/issues/416#issuecomment-481739626
 
 
   Is Sockets in general. Flex provides a Socket method for the delivery of messages.
   
   by example in Flex:
   import flash.net.Socket;
   import flash.events.Event;
   import flash.events.ProgressEvent;
   
   private var DataSocket:Socket = new Socket();
   
   public function connect():void
   { 
   	DataSocket.connect(ServerIP,ServerPort);		
   	DataSocket.addEventListener(Event.CONNECT,NetworkDeployConnect);		
   	DataSocket.addEventListener(ProgressEvent.SOCKET_DATA,ServicePackageSocket);
   }
   
   private function NetworkDeployConnect(event:Event):void
   {
   	var message:ByteArray = new ByteArray();
   	message.writeUTFBytes(Socket_Instruct+"\r\n");
   	DataSocket.writeBytes(message);
   	DataSocket.flush();
   }
   
   private function ServicePackageSocket(event:Event):void
   {
   	while(DataSocket.bytesAvailable) 
   	{
   
   	}
   }
   
   There seems to be no such feature in the current version. Will this method be added in the future? This will enable an interface for the ServerSocket architecture on the server side.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services