What are com_record objects

G

Gijs Korremans

Hi,

I want to connect to a com object with win32.client.
Through this com object a have to connect to an other device with object.Connect(struct IPADDRESS_STRUCT * ip)

the struct IPADDRESS_STRUCT looks like this:

Byte Offset Name Type Length (Bytes) Description
0 b1 BYTE 1 Byte 1 of an internet address
1 b2 BYTE 1 Byte 2 of an internet address
2 b3 BYTE 1 Byte 3 of an internet address
3 b4 BYTE 1 Byte 4 of an internet address

Because Python doesn't have structs like C, I tried to do it with a class (C structs are classes with no private) and with pack but I always get the error message "Only com_record objects can be used as records"

I'm new in the python language but I couldn't find anything about structs or com_records in python on the internet.

Does anyone know how to do this?

Kind regards,


Gijs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,239
Messages
2,571,200
Members
47,840
Latest member
Tiffany471

Latest Threads

Top