github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jsnyder / luarpc

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (12)
    • abstract_transport
    • autotools
    • cexcept
    • cexcept_extended
    • funcname_refactor
    • gh-pages
    • local-linux-abstract
    • master ✓
    • proto_extension_index
    • protothreads
    • separate_transport
    • serial_testing
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Lua-RPC for Lua 5.1.x — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Switch to using Makefile to include define for nanolseep. 
James Snyder (author)
Tue Feb 09 20:16:26 -0800 2010
commit  c281133f6d7bab8ae0c1f537b9f60fac98fe74ab
tree    5a9fb3c6bb97e23fab09c625cd61004c3e5f8ad6
parent  fae674991923671a4dbc8e4c976d362ae0f097bb
luarpc /
name age
history
message
file LICENSE Fri May 01 15:33:39 -0700 2009 Initial hacking on LuaRPC. Not functional. [jsnyder]
file Makefile Loading commit data...
file PROTOCOL Mon Jun 08 11:16:41 -0700 2009 Update notes about status. [jsnyder]
file README Tue Feb 09 11:26:19 -0800 2010 Update build instructions, enhance makefile to ... [jsnyder]
file TODO Mon Jun 08 11:16:41 -0700 2009 Update notes about status. [jsnyder]
file cexcept.h Fri May 29 13:30:14 -0700 2009 Swap out exception implementation for more comm... [jsnyder]
directory logo/ Fri May 01 15:33:39 -0700 2009 Initial hacking on LuaRPC. Not functional. [jsnyder]
file luarpc.c
file luarpc.h Fri May 01 15:33:39 -0700 2009 Initial hacking on LuaRPC. Not functional. [jsnyder]
file luarpc_rpc.h Mon Feb 08 12:14:20 -0800 2010 TCP/IP working on OS X. [jsnyder]
file luarpc_serial.c Thu Feb 04 16:11:48 -0800 2010 Sync code with eLua codebase. [jsnyder]
file luarpc_socket.c
file platform_conf.h Mon Feb 08 14:20:03 -0800 2010 Switch build system to use premake 4. Makefile... [jsnyder]
file serial.h Thu Feb 04 16:11:48 -0800 2010 Sync code with eLua codebase. [jsnyder]
file serial_posix.c
file serial_win32.c Thu Feb 04 16:11:48 -0800 2010 Sync code with eLua codebase. [jsnyder]
file showtable.lua Thu Jun 11 08:13:08 -0700 2009 Include a function to show table contents recur... [jsnyder]
file test-client.lua Mon Feb 08 12:14:20 -0800 2010 TCP/IP working on OS X. [jsnyder]
file test-server.lua Mon Feb 08 14:20:03 -0800 2010 Switch build system to use premake 4. Makefile... [jsnyder]
file type.h Thu Feb 04 16:11:48 -0800 2010 Sync code with eLua codebase. [jsnyder]
README
Lua-RPC is a Lua library to allow simple remote procedure calling. That is, a
Lua script running on one machine can call functions from a script that is
running on another machine.

This is version 0.3, a pre-alpha release.

The goal of this project is to create an RPC module for Lua that is both
simple and light on resource usage. In addition, the module intends to
maintain separation between the actual RPC protocol and the underlying
mechanism that transmits bytes between client and server. This is done in
order to enable the use of the protocol over a variety of link types including
sockets and RS-232.

BUILDING
--------

In order to build the module, just type:

Serial Mode:
make serial

TCP/IP (Socket) Mode:
make socket

NOTE: If you switch between these configurations, make sure to do a make clean between, as it seems to think the target 
is up to date from the previous build.

This should succeed if you have Lua already installed on a Linux or Mac OS X
system. If it does not succeed, feel free to contact me at
jbsnyder@fanplastic.org.

Windows support is somewhat implemented, though not yet ready.

USAGE
-----

The result of the build is a .so file that within a Lua script, one should be
able to simply do a:

require("rpc")

with the module in the Lua path, and use the module as suggested in
test-client.lua and test-server.lua.

Ensure that your scripts reflect the type of enabled "transport" in use.


CREDITS
-------
 
Russell L. Smith (2001):
Original work and project: http://www.q12.org/lua

James Snyder (2009+):
- Port to Lua 5.x
- "transport" abstraction 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server