Initial oftest skeleton with wrapper generators and pylibopenflow
diff --git a/tools/pylibopenflow/include/pyopenflow.template.py b/tools/pylibopenflow/include/pyopenflow.template.py
new file mode 100644
index 0000000..29b59f4
--- /dev/null
+++ b/tools/pylibopenflow/include/pyopenflow.template.py
@@ -0,0 +1,21 @@
+import socket
+
+class ofsocket:
+ """OpenFlow scoket
+ """
+ def __init__(self, socket):
+ """Initialize with socket
+ """
+ ##Reference to socket
+ self.socket = socket
+
+ def send(self, msg):
+ """Send message
+ """
+ ofph = ofp_header()
+ remaining = ofph.unpack(msg)
+ if (ofph.length != len(msg)):
+ ofph.length = len(msg)
+ msg = ofph.pack()+remaining
+ self.socket.send(msg)
+