title: how to send a value via tcp in rails?
body: <p>I am developing rails app and following are the things that i have done and i need to do.</p>
  
  <ol>
  <li>I am using rails for iphone app and i have an api for sending the values to the server.</li>
  <li>When a user sends the value to the server, the value has to be stored in db and i need to show the values to the other user.</li>
  <li>The other user should listen to the tcp server and the value should be received by that user.</li>
  <li>I have read few examples from <a href="https://www6.software.ibm.com/developerworks/education/l-rubysocks/l-rubysocks-a4.pdf" rel="nofollow">https://www6.software.ibm.com/developerworks/education/l-rubysocks/l-rubysocks-a4.pdf</a> and few other examples but i do not know how to proceed.</li>
  </ol>
  
  <p>Please help me. </p>