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
GAMECLOCK(6)							   Games Manual 						      GAMECLOCK(6)

NAME
gameclock - a simple game clock SYNOPSIS
gameclock DESCRIPTION
This manual page documents briefly the gameclock command. gameclock is a simple application designed to track the time spent thinking by the players during a chess game. Various ways of tracking time are supported, with only `countdown' (aka `blitz') and `fisher' for now. The graphical interface is keyboard driven and is intended to be minimal and simple. The code is made to be extensible to other game types. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (--). A summary of options is included below. -h, --help Show summary of options. This includes the program's version and license. -v, --verbose Show progress information to standard output. More `-v' will display more information: timestamps then game state engine. -f, --fullscreen Start the application in fullscreen mode. KEYBINDINGS
Most of the interface is keyboard-driven, apart from the initial clock and game configuration. space start the game / end turn shift keys end the turn, but only for the appropriate side (left or right side) p pause game control-r, escape reset game - this resets all counters and clocks to the initial configuration, use this to restart the game. f toggle the fullscreen mode control-q quit application SEE ALSO
xboard(1), http://gnomecoder.wordpress.com/chessclock/. AUTHOR
gameclock was written by Antoine Beaupre. August 13, 2008 GAMECLOCK(6)
All times are GMT -4. The time now is 06:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy