Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-778

PHP socket listening server

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      I just downloaded Thrift and I need to create servers in PHP, which will
      listen on unix or tcp sockets. So I've implemented it and attaching the
      patch.
      I hope it could be helpful and/or useful for someone else too.

      Here is example:
      $socket = new TServerSocket("unix://$unixPath", -1);
      $socket->listen();
      while(true) $socket->select($processor);

      Link: http://helemik.cz/juzna/opensource/php/thrift/php-server.patch
      Samples: http://helemik.cz/juzna/opensource/php/thrift/server-sample.zip

      Attachments

        1. add-server-support.patch
          12 kB
          Nick Jones

        Activity

          People

            nick-jones Nick Jones
            juzna.cz Jan Dolecek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified