Sponsored Content
Top Forums UNIX for Advanced & Expert Users How do I interface with pf in a C/C++ application? Post 302951388 by nactusberrilli on Wednesday 5th of August 2015 10:36:44 PM
Old 08-05-2015
How do I interface with pf in a C/C++ application?

I'd like to write a simple GUI C/C++ application (a simple interface) where the user can perform a few pf operations and also receive pf feedback (instead of using the pfctl command). I was hoping to get some guidance in regards to where to get started. The pf suggests the use of the ioctl interface . I can see a bunch of constants that start with "DIOC". A quick example or a tutorial on how to get started developing with pf would be more than appreciated. Thanks.
 

3 More Discussions You Might Find Interesting

1. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

2. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

3. IP Networking

Need a bridge from an ethernet interface to a serial interface

This is my situation DOS pc serial cable (sl0) Linux Pc eth1 192.168.0.10 <-------------------->192.168.0.2 <------------>192.168.0.1 (router) I connected the linux pc and the dos pc with a SLIP (serial line internet protocol), so they can communicate in the sl0 interface. ... (3 Replies)
Discussion started by: mghis
3 Replies
EMBOSS::GUI(3pm)					User Contributed Perl Documentation					  EMBOSS::GUI(3pm)

NAME
EMBOSS::GUI - provide web-based access to EMBOSS AUTHOR
Luke McCarthy <lukem@gene.pbi.nrc.ca> SYNOPSIS
use EMBOSS::GUI; $emboss = EMBOSS::GUI->new(); $emboss->intro_page; $emboss->about_page; $emboss->menu_page; $emboss->app_page; $emboss->help_page; $emboss->default_page; DESCRIPTION
EMBOSS::GUI provides a simple web-based interface to the EMBOSS suite of bioinformatics tools. The distribution should have included a sample CGI script that wraps the module appropriately. Alternatively, EMBOSS::GUI can be used to gather information about the local EMBOSS installation. Public methods for that purpose are described below: new(%args) Returns a new EMBOSS::GUI object. %args is a hash of optional named arguments. The following arguments are %recognized: html => $object Specifies an alternative HTML renderer object to use when generating the web interface. See EMBOSS::GUI::XHTML for the methods the replacement object must implement. go() Process CGI arguments and display the corresponding page. intro_page() Generates an introductory page describing EMBOSS and the GUI. about_page() Generates a page describing the local EMBOSS configuration, including the version and filesystem location of each perl module required by the GUI. menu_page() Generates the main menu page. app_page() Generates the application-specific input page or runs an EMBOSS application and generates the output page. help_page() Generates the application-specific manual page. output_page() Generates the application output page, or a placeholder page if the application is still running. default_page() Generates a default page according to the current configuration. frameset_page() Generates a page that sets up the menu and main content frames. apps() Returns a list of available EMBOSS applications. Each element of the list is a reference to an array containing the name and description of an application. groups() Returns a list of application groups. Each element of the list is a reference to an array containing the name of the group and a list of applications belonging to that group (each application is in turn a reference to an array as described in apps() above.) Note that an individual application can appear in multiple groups. is_excluded($subject) Returns true if the subject is being excluded from public display, false otherwise. $subject is the name of an application or application group as it appears in the output from wossname. databases() Returns a list of available databases. Each element of the list is the name of a database, suitable for use in a USA. BUGS
None that I know of... COPYRIGHT
Copyright (c) 2004 Luke McCarthy. All rights reserved. This program is free software. You may copy or redistribute it under the same terms as Perl itself. perl v5.14.2 2006-11-13 EMBOSS::GUI(3pm)
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy