At 05:05 PM 10/25/2001 +0100, you wrote:

>With that in mind should the following work without sending a message??
>
>         <cfobject
>                 action="create"
>                 name="obj"
>                 class="Intrafoundation.TCPClient">
>
>         <cfset c = obj.Open("soapserver address","80")>
>         <cfif c is "1">connected
>         <cfelse>Not Connected
>         </cfif>
>
>thanks
>mark

Assuming the address exists, yes that will open a TCP connection to the 
server. Don't forget to close it afterward though: <cfset obj.Close()> 
(HTTP will remotely close a connection after it sends any data -- annoying 
for sat connections but that's the way it is -- but the Close also does 
some garbage handling on the local client end that you really shouldn't 
rely on the object going out of scope to handle because the tag was 
originally designed to be persistent across pages.).

Additionally I believe the default time-out is something like 200ms. If 
you've developing you'll probably want to toss in a higher timeout than 
normal, say <cfset obj.timeout=3.000> (3 seconds) at first unless you want 
to bother with putting in all the error handling cfml right off the bat.

--min
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to