Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FreakX/DictProto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

DictProto

- Easy Dictionary Protocol -

#After youve loaded the DictProto library,
#you have to initialize a DictProto socket.


import DictProto
socket = DictProto.Socket(DictProto.SERVER_SOCK  # For the server or::
			  DictProto.CLIENT_SOCK, # For the Client
			  6724,			 # Port (Server and Client)
			  "127.0.0.1"		 # Host (Only Client)
			  )

#After You have initialized the server socket, you can listen on it.

socket.Listen()	

#The Socket listens for a Client, until a Client connects

#Then You can Send, or Receive Dictionarys.

#Server:
print socket.Receive()

#Client:
socket.Send({"CMD" : "Hi"})

#Server Shell:
{"CMD" : "Hi"}

About

Einfaches Übertragungsmodul für Python Dictionarys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages