C# :: Async Threaded Tcp Server?

Mar 30, 2010

I want to create a high performance server in C# which could take about ~10k clients. Now i started writing a TcpServer with C# and for each client-connection i open a new thread. I also use one thread to accept the connections. So far so good, works fine.

The server has to deserialize AMF incoming objects do some logic ( like saving the position of a player ) and send some object back ( serializing objects ). I am not worried about the serializing/deserializing part atm.My main concern is that I will have a lot of threads with 10k clients and i've read somewhere that an OS can only hold like a few hunderd threads.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: New Connection Threaded Array?

May 23, 2008

I'm trying to build a program that can connect to all chat rooms that are create

Code:
_global.chat = new Array(new NetConnection());
_global.roomsOn = new Array(1,2,3,4,5);

[code].....

View 2 Replies

Flex :: Performance - Why Does Use A Single Threaded Model

Jul 10, 2009

Over the past few weeks I have been building a prototype application using a Flex front end connected to a J2EE backend using blazeDS. The prototype is an experiment to learn flex and see what its suitability is for a complex trading application requiring a large number of dynamic updates (i.e > 20 a second) via a pub sub type model. During some lightweight performance tests it's become apparent that I need to use multiple threads to ensure the UI remains stable when receiving a large number of updates from the server. All was going well until I discovered that flex has a single threaded programming model!

From a quick Google it looks as though there are numerous hacks to implement thread like behavior. I am sure many people must have been faced with a similar problem. Can people let me know: Are there any good threading libs that are well maintained etc Do other RIA technologies such as silverlight have the same problems. Why did abobe implement a single thread model? Are there any other tricks I can use to ensure my UI is stable.

View 7 Replies

ActionScript 3.0 :: How To Implement An Async Method

Nov 14, 2011

it most used on network accesses. But now, I have a class that will do several things, including but not limited to network accessing, many many single loops within a huge code(maybe). The return time is unspecific, so I think about using an async method. However, when I run my program, I found that all things in call stack are stuck when the loop running. I made a short version of my code. First, the weird AsyncClass.as class is like this:

[Code]...

View 7 Replies

Mysql :: Async Call Of A Callresponder?

Oct 21, 2011

I have a problem with my Flex-Application. As you can see in the code-sample below i try to add some panels to a vgroup. The panels are getting their title from my MYSQL db. My problem is that I can't wait on the async call of the callresponder, so the panel doesn't get filled. How can I wait for the data from DB?If i try to build a new panel with a button it works. When i press the button one panel appears with the right title.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

ActionScript 3.0 :: AIR Async Encoding In A Loop: Png Vs Jpg

Apr 17, 2012

in a AIR mobile project I've done an initial loop that call a class that save images listed in an xml file to the applicationStorageDirectory of the device (iPad/android). With png files I have no problems since I got a jpg file. All files are correctly saved into the directory, but when a jpg occours it stops the save process (so the jpg is the last file saved and the loop on the list is incomplete, no others pngs are saved).

Some code: my class

Code:
package com.fabiogarzoli
{
import flash.events.Event;
import flash.events.IOErrorEvent;

[Code].....

View 5 Replies

Flex :: Multiple Async Webservice Call Requests?

Jul 26, 2011

I am using Flex and Actionscript 3, along with Webservices, rpc and a callResponder. I want to be able to, for example, say:

loadData1(); // Loads webservice data 1
loadData2(); // Loads webservice data 2
loadData3(); // Loads webservice data 3

However, Actionscript 3 works with async events, so for every call you need to wait for the ResultEvent to trigger when it is done. So, I might want to do the next request every time an event is done. However, I am afraid that threading issues might arise, and some events might not happen at all. I don't think I'm doing a good job of explaining, so I will try to show some code:

private var service:Service1;
var cp:CallResponder = new CallResponder();
public function Webservice()[code]....

I could ofcourse save the actions in an arraylist, but whose to say that the addToArrayList and the check if other calls are available do not mess eachother up, or just miss each other, thereby halting execution? Is there something like a volatile Arraylist?

View 2 Replies

Javascript :: Is External Interface In Flash Async Or Sync

Jan 10, 2012

I will call flashObject.httpRequest to complete a http request via flash. The problem is there is no reference about httpRequest is an async method or sync. It is important for my application.

private function httpRequest (uri:String, param:String="", method:String="GET"):void
{
var

[Code]....

View 1 Replies

Multithreading :: Flex Async I/O Operation Is On A Worker Thread?

Jan 22, 2012

I am aware that Action Script does not provide multithreading so when writing flex application we are limited to work on one thread. which is ok for rendering my UI.

However some questions arise when preferring flex over silverlight:

As a UI layer single thread is good enough but is it fair to assume that for Aync httpservice like operations in flex , internally it would use some worker threads to manage the async operation and then come back to the main thread ? it looks like it does since my UI does not freeze.Can the flex/flash player deal with multiple httpservice calls in parallel ? ( e.g more than one section of the UI loading data at the same time.)How about the animation stuff ( e.g the parallel animation ) - does flash player internally leverages some threading for accelerating graphics or is it all done on the UI thread ?

View 1 Replies

Actionscript 3 :: Flash Async Calls With Mouse Click Permissions?

Nov 19, 2009

The current workflow is as follows:

user clicks a button sends a Loader to see if the user has permission if the user has permission uploads a file

Unfortunately, this gives:

SecurityError: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.

It appears that as a security feature, Flash 10 disallows certain functions (such as uploading a file) unless it is preceded by a mouse click or button press. However, since I am first loading the request for permission, it no longer see the MouseEvent event (presumably in the stack) and thus throws a SecurityError.

View 2 Replies

ActionScript 2.0 :: Flash/IE Doesn't Bother To Use Async Load When Expected

Sep 23, 2011

I'm having a weird situation that only seems to occur in IE. This may or may not be related to my other post ("Need to worry about thread-safety?"), but I'm not sure, so I'm putting this in a separate thread.I have a setup in my my flash app to load an arbitrary number of different sounds, but with an limit on the number of sounds being loaded simultaneously. It works like this (psuedocode):

Code:
arrayOfURLs = ["a.mp3", "b.mp3", "c.mp3", ...etc...];
arrayOfSounds = [];
nextToLoad = 0;

[code]....

EDIT: In other words, it starts loading up to the first, say, 5 sounds, and then after each one finishes loading, it starts loading the next sound in the queue.It works fine on everything except IE. And it will work on IE as long as the files aren't cached. But if they are cached, then in IE (and only in IE) the flash app will hang and produce a trace like this:

a
b
start callback
start callback

[code]....

And after roughy 50 of those "start callback"s the flash app hangs and it never gets to any "end callback" or "c".It seems that loadSound is deciding to call onLoad synchronously, instead of asynchronously as would normally be expected. But this never seems to happen in anything but IE, even when the given browser has it all cached. So apparently it's either calling onLoad the wrong way in IE, or flash events like onLoad are susceptible to race conditions and need to be written accordingly.

View 0 Replies

Media Server :: Streaming Server Returned A 500 Internal Server Error

Nov 13, 2009

The company I work for installed FMS on a server running Centos for a customer who needed streaming media capabilities. It worked fine for 3 months until today the customer called us and informed us that their client program can no longer connect to the streaming media server. No one has done anything to the server to cause this to happen. When attempting to access the admin console to diagnose the program, the streaming server returned a 500 Internal Server Error. So I tried another page. Same result. Reboots of both the hardware server and the FMS have changed nothing.

View 5 Replies

Media Server :: Swf Hosted On One Server Connect To Live Stream From Another Server?

Apr 28, 2010

One server - is streaming server with Flash Media Interactive Server 3.5that host the application with asc files in FMS application directory.Second server - is the IIS web server that host thehtml,aspx,swf etc.. files.So basically i heve swf file on one server that have to connect to live streaming via rtmp on different server with different ip address.I did not find any clear explanation on this crossdomain rmtp issue.ys only HTTP can use crossdomain.xml policy filebut not rmtp.So what policy security procedure need to be done in order to enableswf file hosted on one server to connect and show rmtp live cam broadcasting from another server?

View 2 Replies

Media Server :: Development Server Be Installed On A Remote Server?

Oct 14, 2010

The instructions for installation only cover installation on "localhost".  I'm wondering if I could use the development server for a small scale website depolyment with restricted traffic, from a commercial server, such as goDaddy?And if so, what''s the method?  Do I download the package from Adobe to my local hard drive and install over the network, or copy the package to the server and install it online?

View 1 Replies

Media Server :: Streaming Server 4 - Server Side Playlist?

Jan 26, 2011

The $995.00 version is listed as not supporting server side playlists.  Is it possible to implement internet TV station like functionality using that version?  I would like to have a list of files to play out and have it so those connected are all viewing the same thing.

View 1 Replies

Media Server :: Republish Server To Server But With FCPublish

Sep 15, 2010

I would like to RePublish Live Stream to a CDN (Level3). this CDN must use FCpublish on Client Side (like FME).
 
my Publisher send stream on FMS3.5 (Server1) and this stream must go to Serveur2 (CDN) with FCPulish.
 
On my local serveur1, i add some code to do that but whitout succes...
 
i can RePublish when i simulate the second Server(2) on my LocalHost BUT withOut the FCPublish Method.. (i use the sample from Adobe Flash Media Server "Publishing server 2 server")
 
How can i change this sample to use the FCPublish method to republish the stream to Server2 ?
 
with my tests, i think that my problem is how to receive the "onFCPublish = netstream.publish.start" from the server2 to my server1
 
please, do you have a great and simple sample (like this before) to reStream by FCPublish Method ?
 
I know how to make it in AS3 on my Flex Client Application but not in the Action Script on the main.asc

View 1 Replies

Media Server :: Flash Media Streaming Server And Interactive Server?

Jul 17, 2010

I'm building a video conferencing applicaition for a portal. But now when considering which version of flash media server to buy, I run into some problem. So can anyone helps me about comparing this two versions: Flash Media Streaming Server and Flash Media Interactive server, like if I use Flash Media Streaming Server, some function like NetStream.pause() may not work or something like that? I'm not sure if this is a foolish question but please let me know.

View 3 Replies

ActionScript 3.0 :: Writing And Modifying XML Files Using Server-Side / Flash Media Server?

Jul 8, 2009

can you write and modify XML files using server-side Actionscript? I've been going through Adobe's Server-side Actionscript reference, reading up on the File class that lets you modify files on the server, and the server-side XML class that lets you read and 'understand' XML data, but can you put them together and essentially edit XML files on the server?

View 2 Replies

Media Server :: Cannot Connect To Admin Console FMS 3.5 Running Separate Apache Server

Jul 7, 2009

I have installed the FMS 3.5 Server on a separate IP from our main Apache Server: The server is running Redhat Linux 2.6.18-128.1.10.el5
 
FMS 3.5 running on ***.***.**.138 using ports 1935, 8080 (Admin Server using port 1111)
Apache 2 running on ***.***.**.139 using port 80, 443. (several sites setup on this IP)
 
However, when accessing the fms_adminConsole.htm in the root directory of one of the domains on ***.***.**.139, all login attempts fail. I am connecting to localhost and using the assigned user and password set up in fms.ini. Using either IP fails as well. The FMS server is set up to listen to all hosts as no specific IPs were set.
 
/var/log/messages show that FMS and the Admin Server are up an running and listening:
Jul  7 12:15:37 228215-web1 Service[28196]: Server starting...
Jul  7 12:15:37 228215-web1 Service[28196]: Server started (/opt/adobe/fms/conf/Server.xml).

[Code]....

All other settings for FMS are default. This is my first time setting up FMS as a fresh install on a new unknown server and I am at a loss as to what settings to check or which files I may need to modify to get it to connect properly. It is a managed server is hosted by rackspace.com if that makes any difference.

View 5 Replies

Media Server :: Stream.play On Server Side Makes Video Choppy?

Apr 30, 2010

I have an *.flv file on a FMS. When I play it on the client side the video plays just fine, but when I call Stream.play(filename, 0, -1, false) on the server side the video turns out really choppy.I both cases I use NetConnection to connect to an rtmp and NetStream to play the stream, but in one case I connect to a stream and request the server to play my file on that stream. Apparently that doesn't work with files? It works just fine for live streams.

View 20 Replies

Flash :: Media Server - Connect To Own Server To Watch Streaming Video From Another Computer?

May 19, 2010

How can i connect to my own server to watch my streaming video from another computer?

View 10 Replies

Media Server :: Client Returns Server Not Found:rtmp://192.168.10.1:/live When Accessed From Another Pc?

Jun 29, 2010

i have a small LAN of about 8 computers all of which are running windows 7. I have installed FMS and XAMPP webserver on one of the machines. I want to stream live from one PC to all the other PCs on the LAN. I have a webpage with jwplayer embedded in it on my XAMPP webserver that is able to see the live stream when i start it locally. I mean the live stream works fine on the machine with the servers on it. But when i want to view the live stream from another machine in the LAN by accessing the webpage that has the jwpalyer from another machine, The jwplayer returns "server not found:rtmp://192.168.10.1/live" error. I was thinking that maybe a firewall is blocking the 1935 port but i have turned off the firewall of every PC on the LAN. I have unistalled any antivirus program on all the PCs. But i still get the same error when i try to access the live stream from another PC on the LAN.When i run netstat -a -n|find ":1935" i get 192.168.10.2:49184 192.168.10.1:1935 SYN_SENT and i think the request for the stream is sent but the conection is rejected.

This is the code for the webpage with jwplayer embedded in it. maybe it:
<html>head> <title>JW FLV Media Player</title>    <script type="text/JavaScript" src="swfobject.js"></script>

[code].....

View 3 Replies

Media Server :: NetStream.Play.InsufficientBW When Streaming Server Side Playlist?

Sep 23, 2010

I am streaming pre recorded audio files (mp4) to an AIR client. I have tried two different solutions,
streaming the file directly with the NetStream.play("mp4:xxxxx.m4a") and creating a server side playlist, adding the same sound clip and then streaming the playlist. The problem is, when streaming the playlist i get a few NetStream.Play.InsufficientBW, this does not happen when streaming the file direct. Both solutions uses bufferTime=1.0
 
I would like to use a server side playlist to implement a simple key solution so that the client dont know the full path to the file, but instead sends a key to a custom server side function that looks up the file path and creates a stream for the client.

View 1 Replies

Media Server :: RTMFP Unicast For A Video Chat Project Using FM Developer Server 4.0?

Oct 7, 2010

I am testing RTMFP unicast for a video chat project using FM Developer Server 4.0.During the testing I overloaded the upload traffic to make packets dropped rather than suffering delay due to retransmission.
 
However, I see it makes a significant delay and it looks like doing retransmission just like RTMP.
 
Do you know if there is an option in FMS to disable the retransmission or other configuration I have to consider?One thing I found is "Netstream.videoReliable=false; Netstream.audioReliable=false;" but it doesn't make any difference.

View 2 Replies

Media Server :: Change Recorded Stream Files Permissions From Server Side?

Dec 20, 2010

I need a way to set the permissions (ex 0777) for the recorded streams without calling any additionals scripts.

View 2 Replies

Media Server :: Way To Pass Rtmp Call For A Live Stream Through A Proxy Server?

Mar 4, 2011

Somebody I know can't watch because they have a proxy server.The nc.connect() call to get the live stream fails because it goes direct from AS3 to FMS and doesn't go through the proxy server.

View 1 Replies

Media Server :: Activating PHDS From Application.xml And Event.xml Causing The Server Error

Mar 5, 2012

Dear community, i am searching for 6 days for a solution but i couldnt find. I installed the trial version of Adobe Media Server 4.5. I am trying to host live stream and it is working without error. but when i activate protection (PHDS), server gives en error code: 20...

Here is the server log...
 
After i could take the Live HDS, i made these settings as described at [url]

My application.xml and event.xml files are:

View 1 Replies

ActionScript 3.0 :: VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server

Aug 19, 2010

I'm attempting to make it so that when a person fails to fill in blank textboxes in another app that someone else made and I have nothing to do with but affects the XML node Path, my flash file will look instead at DefaultPath if it can't load whatever is in Path..

Here is the sample XML

Code:
<abatch>
<Title>Title!</Title>
<Path>/content/main/broken/path</Path>

[code]....

Is the code I've been trying to use but it won't do what I want. I keep getting this error:

VideoError: 1000: Unable to make connection to server or to find FLV on server

The XML is being properly loaded. Everything else is working. I just need to know that when something is blank it will look at the DefaultPath. I don't seem to be able to get it to do that.

View 4 Replies

VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server?

Jun 15, 2007

I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error.I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.Does anybody know what can cause this error?

VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback

[code]....

View 10 Replies

Media Server :: Save To File Live Video Stream In Server?

Apr 27, 2009

I use FMIE and FMLE.how can i do save to file Live Streaming in server installed fms, not local system ?

View 1 Replies







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