[go: up one dir, main page]

Menu

Tree [a443d0] 1.3.0 / doc / examples /
 History

HTTPS access


File Date Author Commit
 java 2016-04-25 Christian Ferrari Christian Ferrari [a443d0] Release 1.3.0 commit
 php 2016-04-25 Christian Ferrari Christian Ferrari [a443d0] Release 1.3.0 commit
 python 2016-04-25 Christian Ferrari Christian Ferrari [a443d0] Release 1.3.0 commit
 AdvancedDynamic.cc 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 AdvancedStatic.cc 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 BasicDynamic.cc 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 BasicStatic.cc 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 Makefile.am 2016-04-16 Christian Ferrari Christian Ferrari [2b7e12] Completed TLS API for all languages: C, C++, Ja...
 Makefile.in 2016-04-25 Christian Ferrari Christian Ferrari [a443d0] Release 1.3.0 commit
 README.in 2016-04-19 Christian Ferrari Christian Ferrari [140877] Commit for release 1.2.0
 advanced_dynamic.c 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 advanced_static.c 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 basic_dynamic.c 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 basic_static.c 2016-01-06 Christian Ferrari Christian Ferrari [da799c] Copyright update, first TCP encapsulation in fl...
 example_makefile.in 2014-12-19 Christian Ferrari Christian Ferrari [93f91d] Added C++ examples

Read Me

This directory contains the example programs: choose the programming language
of your interest and pick-up the example you can use as a starting point to
develop your own custom software that uses libflom API.

C examples: basic_static.c basic_dynamic.c advanced_static.c advanced_dynamic.c
How to compile:
	make -f example_makefile basic_static
	make -f example_makefile basic_dynamic
	make -f example_makefile advanced_static
	make -f example_makefile advanced_dynamic
or
	make -f example_makefile

Before running "basic_static" or "basic_dynamic" you have to start a local 
FLoM daemon listening default local socket:
	flom -d -1 -- true

Before running "advanced_static" or "advanced_dynamic" you have to start a
local FLoM daemon listening a specific local socket:
	flom -s /tmp/my_socket_name -d -1 -- true

To trace FLoM API calls you have to set FLOM_TRACE_MASK environment variable
(bash example):
	export FLOM_TRACE_MASK=0x8000
before program execution.

The directory @libdir@ may be already in your standard library path; in
the case it's not, you can use LD_LIBRARY_PATH environment variable before
executing the compiled programs:
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:@libdir@
	./basic_static
	./basic_dynamic
	./advanced_static
	./advanced_dynamic

More exhaustive examples related to setter and getter methods provided by the
API are available in @abs_top_builddir@/tests/src dir:
	case0002.c	for the C language
	case1002.cc	for the C++ language
	case2002.php	for the PHP language
	case3002.py	for the Python language
	case4002.java	for the Java language