Subj : Reading files directly To : Charles Blackburn From : Digital Man Date : Sat Sep 17 2022 16:39:04 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++. > i found SMBLIB in the repo, but is there any example programs that show how > to use it ? Sure, smbutil.c is probably the simplest example. -- digital man (rob) Rush quote #70: He's got a problem with his power, with weapons on patrol .. New World Man Norco, CA WX: 79.4øF, 53.0% humidity, 5 mph S wind, 0.00 inches rain/24hrs --- SBBSecho 3.15-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .