All
I'm looking at writing some programsand i figured i would start by looking at the message base as that's the easiest thing to do right now... read/list etc.
i found the structures definition here (http://synchro.net/docs/smb.html) but for the life of me the C structs that are listed in there are not valid that I can tell as for example, you can't have a flexible array that's not at the end of the struct. They would need a length definition.
So unless i'm missing something, is there a definitive SDK or header file i can use that has the correct structures in them?
i'm not a C programmer, although i do know the basics, but i would also rather code in python, but there's no echo for that :P
i found SMBLIB in the repo, but is there any example programs that show how to use it ?
Re: Reading files directly
By: Charles Blackburn to All on Sat Sep 17 2022 04:17 pm
All
I'm looking at writing some programsand i figured i would start by
looking at the message base as that's the easiest thing to do
right now... read/list etc.
i found the structures definition here
(http://synchro.net/docs/smb.html) but for the life of me the C
structs that are listed in there are not valid that I can tell as
for example, you can't have a flexible array that's not at the end
of the struct. They would need a length definition.
They're valid structs since empty arrays are pointers in C. If you
want to see the actual C structure definitions used in SMBLIB, see
smbdefs.h.
So unless i'm missing something, is there a definitive SDK or
header file i can use that has the correct structures in them?
Yes, SMBLIB.
i'm not a C programmer, although i do know the basics, but i would
also rather code in python, but there's no echo for that :P
You'd save a lot of trouble by using the Synchronet JavaScript
MsgBase class instead. It's *much* easier for reading/manipulating
message bases than what is necessary in C or C++.
Sysop: | Kurt Hamm |
---|---|
Location: | Columbia, SC |
Users: | 7 |
Nodes: | 20 (0 / 20) |
Uptime: | 230:11:00 |
Calls: | 2,774 |
Calls today: | 2 |
Files: | 64 |
Messages: | 848,222 |