Fwd: Sockets: Receiving C Struct

2011-08-05 Thread Johnny Venter
I was not sure if this message was sent before my membership was accepted. Please disregard if it's a duplicate. Thanks Begin forwarded message: > From: Johnny Venter > Date: August 5, 2011 8:15:53 AM EDT > To: python-list@python.org > Subject: Sockets: Receiving C Struct &

Sockets: Receiving C Struct

2011-08-05 Thread Johnny Venter
New to python and would like to test network/sockets with it. I am having a problem where I have setup the following: import socket, sys, struct HOST = '1.1.1.1' PORT = 153 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) data = struct.unpack('!I',s.recv(4))[0] s.c

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this? I found dcerpc might be the way to go. On A

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
his? On Aug 20, 2011, at 7:57 PM, Chris Angelico wrote: > On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter > wrote: >> Thank you all for the replies. I would like to query various Windows' >> objects and resources from Mac and/or Linux such as Active Directory users,

Re: Learning Python

2011-08-23 Thread Johnny Venter
http://greenteapress.com/thinkpython/ On Aug 23, 2011, at 10:46 PM, User wrote: > Hello all, > Does anyone have any good resources for learning Python? I know basic Java > and basic Python (loops, data types, if-then statements, etc), but I want to > delve into Python further. If anyone knows o