>Does it have to be via a Foxpro program ?
I was in a hurry last night when I mailed the above reply, I'll expand on the reason for the question.
If it doesn't have to be Foxpro - there's a great language called REBOL which may be able to do what you want.
It's a powerful scripting language with support for a large number of networking protocols, including TCP. It is fairly easy to write your own protocols based on the built in ones - without too much effort the source for the protocols can be listed & modified.
It's is available for free download from
http://www.rebol.com - one of the most impressive things about it is the size of the download - 168k & it handles HTTP, SMTP, POP, FTP, NNTP & TCP amongst other protocols.
I came across it in an article in the July 2000 issue of Dr.Dobbs Journal, the examples in that require the version of Rebol with graphical capabilities, again free download & around 300k.
It is also multiplatform (though not Apple II).
Mike
"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman