Smart CODE
Your on-line guide to the generated code

NAME
ReceiveHandlerProc - Handling URL Content, or overriding thin-client data exchange

INTRODUCTION
This is primarily for Internet Smart Code. If you use it in a Thin-Client application, you are entirely responsible for updating the interface. It replaces the default postcondition/update sequence in thin-client programming.

When you access a URL from the Internet, either a data file, or a query from a web server - this routine is the point where you process the incoming stream and apply it in your client. You may send it straight to a custom widget for display, save the data locally, or process it as it arrives. You can easily filter information from an incoming HTML input stream using the SGML/HTML parsing engine included in the Smart Code package. This is event based, and is analogous to user interface programming where you set up callbacks on significant events in the interface. Here you set up callbacks on significant elements in the HTML stream that is coming from the Internet. You don't need to parse anything in order to extract the data you need.

SYNOPSIS

C


#include "URL.h"

typedef int (*ReceiveHandlerProc)( sc_stdcs_t*, sc_idata_t*)
	sc_stdcs_t* data;
	sc_idata_t* idata;
C++

#include "URL.h"

typedef int (*ReceiveHandlerProc)( sc_stdcs_c*, sc_idata_c*)
	sc_stdcs_c * data;
	sc_idata_c * idata;
Java

public class HANDLERNAME_c extends SCInputDataHandler
{
	public void doit( SCIData idata)
	{
	}

	public static HANDLERNAME_c getNew_HANDLERNAME_c() {
		return new HANDLERNAME_c();
	}
}

Inputs

Other Notes
HANDLERNAME will be replaced in the generated code by the name you have given to your Receive Handler routine.

DESCRIPTION

USAGE

EXAMPLES
Processing URL data example
LanguageUsageComments
C

     

C++

     

Java

     

SEE ALSO