Group:
I am slowly working on on SNPP with ColdFusion and have found a COM object
to handle some of the traffic. Below is my code that I am currently using.
Question is with COM objects, is their a standard listing on commands that
has been published that I can use for reference. I am wanting to retrieve
information back from the page object and depending on what the first 3
characters are, depends on what page gets displayed. I have tried to do a
Left(page, 3) and set that to a variable which produced a blank variable.
Then I tried to do a Left(HTMLCodeFormat(page), 3) to see if this worked
and received the same blank variable back.
Any Ideas.
<CFOBJECT ACTION="CREATE" NAME="obj" CLASS="Intrafoundation.TCPClient">
<CFSET HostPort = obj.Open("ServerName","PortNumber")>
<CFINCLUDE TEMPLATE="obj.mod.cfm">
<CFIF HostPort IS "1">
<cfset obj.timeout=3.000>
<CFSET page=obj.Recv()>
<CFOUTPUT>#HTMLCodeFormat(page)#</CFOUTPUT>
<b>tcpclient</b><br>
<cfset obj.SendRN("Logi [EMAIL PROTECTED]")>
<CFSET obj.SendRN("page 0162")>
<CFSET obj.SendRN("mess TESTING FROM CFM PAGE TO SNPP")>
<CFSET obj.SendRN("SEND")>
<CFSET obj.SendRN("QUIT")>
<cfset page=obj.Recv()>
<cfoutput>#HTMLCodeFormat(page)#</cfoutput>
<b>tcpclient</b><br>
<cfset obj.SendRN("tcpclient")>
<cfset page=obj.Recv()>
<cfoutput>#HTMLCodeFormat(page)#</cfoutput>
<cfset obj.Close()>
</CFIF>
-------------------------------------------------------------------------------------------
Graham Pearson, System Administrator / Certified Webmaster
Northern Indiana Educational Services Center
Http://support.niesc.k12.in.us Email: [EMAIL PROTECTED]
Voice (574) 254-0444 Ext 108 / (800) 326-5642 Fax: (574) 254-0148
--------------------------------------------------------------------------------------------
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists