Subj : Re: Reading files directly To : All From : Nelgin Date : Wed Sep 21 2022 13:38:39 On Sat, 17 Sep 2022 16:39:04 -0700 "Digital Man" wrote: > 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++. https://synchro.net/docs/jsobjs.html In case you don't have this link, I'd highly recommend bookmarking it. This gives you easy access to a lot of syncrhonet objects. Pretty much all the end-user produced scripts are done in javascript. If you know C or C++ then it shouldn't be difficult to transition to JS. -- End Of The Line BBS - Plano, TX telnet endofthelinebbs.com 23 --- þ Synchronet þ End Of The Line BBS - endofthelinebbs.com --- SBBSecho 3.15-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .