/>


RCFProto Python Demo

This section describes how to build and run the RCFProto Python demo server and client, on Windows. You will need the Win32 binary distribution to follow these steps.

RCFProto is currently only supported on Python 2.6 and Python 2.7.
Installing RCFProto using setup.py
  • From the root directory of the distribution, change directory to the src directory:

  • cd python\src

  • Install the RCFProto Python module (and Google.ProtocolBuffers, if not already installed):

  • python setup.py install

Installing RCFProto using easy_install

As an alternative to setup.py, the Win32 distribution provides 4 Python eggs, for use with easy_install. To install these, you will need to know the version and architecture of your Python interpreter:

  • For 32 bit Python 2.6:

  • easy_install --allow-hosts=*.python.org bin\x86\rcfproto-1.0-py2.6.egg

  • For 64 bit Python 2.6:

  • easy_install --allow-hosts=*.python.org bin\x64\rcfproto-1.0-py2.6.egg

  • For 32 bit Python 2.7:

  • easy_install --allow-hosts=*.python.org bin\x86\rcfproto-1.0-py2.7.egg

  • For 64 bit Python 2.7:

  • easy_install --allow-hosts=*.python.org bin\x64\rcfproto-1.0-py2.7.egg

Running the Python demo server and client

  • From the root directory of the distribution, change directory to the demo directory:

  • cd python\demo

  • Generate source code for Protocol Buffer messages:

  • ..\bin\protoc.exe Demo.proto --python_out=.

  • Run the demo server:

  • python DemoServer.py

  • Run the demo client (in a different command prompt):

  • python DemoClient.py