[futurebasic] Wherefore Drop Box

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Russ Pagel <russp@...>
Date: Sun, 29 Jan 2006 01:22:08 -0600
Ken,

Sorry to hear about the drop box.  I found something similar in the archives
and was able to hook it in.

BTW:  I thought it was cool that you "personalized" the example to my ISP
domain.  ;-)

Thanks

russp

---------------
local fn DoUnixCommand$( cmdStr as str255 )'execute a UNIX command
dim as str255 tempStr, resultStr
open "unix", 2, cmdStr
do
line input #2, tempStr
gC += tempStr + chr$(13)'put result in container
until eof (2)
close  2
end fn

// ipStr can take the form of either "x.x.x.x" or "myDomain.com"
local fn IPShortResolver$( ipStr as str255 )
end fn = fn DoUnixCommand$( "host " + ipStr )
----------------


> From: Ken Shmidheiser <kshmidheiser@...>
> Date: Sun, 29 Jan 2006 02:07:37 -0500
> In this thread Russ asked:

> Alas the FB drop box server address is now in cybermorgue as you have
> discovered.
> 
> At any rate, the Open Transport code you are seeking is discussed here:
> 
> http://developer.apple.com/documentation/Carbon/Reference/Open_Transport/Refer
> ence/reference.html#//apple_ref/doc/uid/TP30000220-CH1g-F04609
> 
> but is not recommended for new development.
> 
> If you want to real modern, research CFNetwork, particularly the
> CFHostGetNames and CFHostGetAddressing framework functions.
> 
> At any rate, here is a little function that may do what you want
> with the caveat that it only works in OS X.
> 
> Ken