Home Man
Today's Posts

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

Linux 2.6 - man page for megaco_flex_scanner (linux section 3erl)

megaco_flex_scanner(3erl)	     Erlang Module Definition		megaco_flex_scanner(3erl)

       megaco_flex_scanner - Interface module to the flex scanner linked in driver.

       This  module  contains the public interface to the flex scanner linked in driver. The flex
       scanner performs the scanning phase of text message decoding.

       The flex scanner is written using a tool called flex . In order to be able to compile  the
       flex scanner driver, this tool has to be available.

       By  default  the flex scanner reports line-number of an error. But it can be built without
       line-number reporting. Instead token number is used. This will speed up the scanning  some
       5-10%. Use --disable-megaco-flex-scanner-lineno when configuring the application.

       The scanner will, by default, be built as a reentrant scanner if the flex utility supports
       this (it depends on the version of flex). It is possible to explicitly disable  this  even
       when  flex  support this. Use --disable-megaco-reentrant-flex-scanner when configuring the

       megaco_ports() = term()
       megaco_version() = integer() >= 1

       start() -> {ok, PortOrPorts} | {error, Reason}

	      Types  PortOrPorts = megaco_ports()
		     Reason = term()

	      This function is used to start the flex scanner. It locates the library  and  loads
	      the linked in driver.

	      On  a  single core system or if it's a non-reentrant scanner, a single port is cre-
	      ated. On a multi-core system with a reentrant scanner, several ports will  be  cre-
	      ated (one for each scheduler).

	      Note  that  the process that calls this function must be permanent. If it dies, the
	      port(s) will exit and the driver unload.

       stop(PortOrPorts) -> stopped

	      Types  PortOrPorts = megaco_ports()

	      This function is used to stop the flex scanner. It also unloads the driver.

       is_reentrant_enabled() -> Boolean

	      Types  Boolean = boolean()

	      Is the flex scanner reentrant or not.

       is_scanner_port(Port, PortOrPorts) -> Boolean

	      Types  Port = port()
		     PortOrPorts = megaco_ports()
		     Boolean = boolean()

	      Checks if a port is a flex scanner port or not (useful when if a port exits).

       scan(Binary, PortOrPorts) -> {ok, Tokens, Version, LatestLine} | {error,  Reason,  Latest-

	      Types  Binary = binary()
		     PortOrPorts = megaco_ports()
		     Tokens = list()
		     Version = megaco_version()
		     LatestLine = integer()
		     Reason = term()

	      Scans a megaco message and generates a token list to be passed on the parser.

Ericsson AB				  megaco 3.15.1 		megaco_flex_scanner(3erl)

All times are GMT -4. The time now is 09:04 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?