Skip to content

Support for Unix Domain Socket #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Simple msgpackrpc client using unix domain socket
  • Loading branch information
hvishwanath committed Apr 8, 2013
commit 9d3b914c92b98730864097de314e23db42365f4c
5 changes: 1 addition & 4 deletions example/uds_simpleclient.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
'''
Created on Apr 5, 2013

@author: hvishwanath | harish.shastry@gmail.com
'''
import msgpackrpc

import msgpackrpc.udsaddress
from msgpackrpc.transport import uds


client = msgpackrpc.Client(msgpackrpc.udsaddress.UDSAddress("/tmp/exrpc"), builder=uds)
result = client.call('sum', 1, 2) # = >
print "Sum of 1 and 2 : %d" % result
4 changes: 1 addition & 3 deletions example/uds_simpleserver.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'''
Created on Apr 5, 2013

@author: hvishwanath | harish.shastry@gmail.com
'''
import msgpackrpc

import msgpackrpc.udsaddress
from msgpackrpc.transport import euds
from msgpackrpc.transport import uds
Expand Down
2 changes: 0 additions & 2 deletions msgpackrpc/transport/uds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'''
Created on Apr 5, 2013

@author: hvishwanath | harish.shastry@gmail.com
'''

Expand Down
2 changes: 0 additions & 2 deletions msgpackrpc/udsaddress.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'''
Created on Apr 5, 2013

@author: hvishwanath | harish.shastry@gmail.com
'''

Expand Down
4 changes: 4 additions & 0 deletions test/test_uds_msgpackrpc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author: hvishwanath | harish.shastry@gmail.com
'''

from msgpackrpc.transport import uds
from time import sleep
import threading
Expand Down