title: Javascript Server Side Events with C-client Server Program
body: <p>Im looking for feasibility of calling C object(for copying a file from client to server) via Javascript Eventsource.</p>
  
  <p>Ex:</p>
  
  <p>I have a C-Client Program which can be executed as below:</p>
  
  <blockquote>
    <p>./client ip</p>
  </blockquote>
  
  <p>executing above file will 
  send a file from client machine to server running at port 8888.</p>
  
  <p>Server will be running at 8888 will receive the file and will write at /folder1/receivedfile.</p>
  
  <blockquote>
    <p>./server ip</p>
  </blockquote>
  
  <p>I need to do this in Javascript Event source.</p>
  
  <p>Javascript code example:</p>
  
  <blockquote>
    <p>if(window.EventSource){<br/>
    var source =new EventSource("c-object");<br/>
    }else{<br/>
    // Result to xhr polling :( xhttprequest<br/>
    }<br/></p>
  </blockquote>