Creating a Socket Server using Coldfusion -


i want notify iphone app of updates using socket server real time updates , prevent need polling. server side language coldfusion, , after weeks of searching web following threads of people attempting conclusion has come coldfusion doesn't support this. firstly if has suggestions no 1 else has provided proper way coldfusion feel free cut me short , please enlighten me. anyhow, solution occurred me (in sleep!) , before invest time doing wanted ask if critically flawed reason.

there isn't in adminstrator supports this, , people rightly point out can't instantiate server socket on page since hang page waiting requests, , server destroyed when page times out.

but wrong following solution, create appserver.cfc component, wraps java serversocket. trigger run this:

<cfset application.servercfm=new appserver()>  <cfthread timeout="2147483647">     <cfset application.servercfm.start()> </cfthread> 

the server remains indefinately on application scope, , page returns instantly. thread timeout sets 60 years, although i'm sure i'll have more frequent server restarts!

i hope question isn't flagged opinionated, question is: there means, can provide service through socket using coldfusion whether solution or suggested forum.

thanks


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -