Farmer Scott
03-21-2009, 07:35 AM
So, I'm working on 'dns.spin', well, actually just the gethostbyname() function.· Before I get too far along, I've got some question about object interaction.· I'm wondering if what I have in mind will work...
Here's the code and object relationship...
main.spin
··· |- dns.spin
··· |- api_telnet_serial.spin
··········· |- driver_socket.spin
··················· |- driver_enc28j60.spin
The big question is, if I call the api_telnet_serial.start() function from main.spin, which will of course call the same function in driver_socket and driver_enc28j60, can I still call the api_telnet_serial.connect() function from dns.spin?
Sorry, I realize this is probably a little confusing, at least I am certainly confusing myself, but not exactly sure how to proceed.· I can usually get by with SPIN, but this is one conundrum that's got me perplexed...
Or, does anyone have any suggestions on a good way to implement this function?
Thanks,
Scott
Here's the code and object relationship...
main.spin
··· |- dns.spin
··· |- api_telnet_serial.spin
··········· |- driver_socket.spin
··················· |- driver_enc28j60.spin
The big question is, if I call the api_telnet_serial.start() function from main.spin, which will of course call the same function in driver_socket and driver_enc28j60, can I still call the api_telnet_serial.connect() function from dns.spin?
Sorry, I realize this is probably a little confusing, at least I am certainly confusing myself, but not exactly sure how to proceed.· I can usually get by with SPIN, but this is one conundrum that's got me perplexed...
Or, does anyone have any suggestions on a good way to implement this function?
Thanks,
Scott