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: | MarisaG |
---|---|
Location: | South San Francisco, CA |
Users: | 82 |
Nodes: | 15 (0 / 15) |
Uptime: | 223:53:21 |
Calls: | 1,436 |
Calls today: | 1 |
Files: | 7 |
Messages: | 22,029 |