Sponsored Content
Operating Systems AIX Determining how long device has been in defined state Post 302766811 by jwholey on Tuesday 5th of February 2013 12:42:54 PM
Old 02-05-2013
Thanks for the updates... appreciated. One of the SA's who supports my app has advised me that a few network interfaces went into defined state over a year ago. I'm not suggesting something nefarious is going on, I would simply like to know how he determined that.
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Hitting with custom port in CLOSE_WAIT state for long time in solaris 10

Hi, Occasionally I am getting the port state in CLOSE_WAIT for long time in the solaris server. I am not sure is it application problem or not. Because we are using port 9009 for Tomcat process in our web application, some time when I start the application, the port 9009 is in CLOSE_WAIT... (0 Replies)
Discussion started by: mgmk.84
0 Replies

2. AIX

Device Available / Define state

Hi, I would like to know wheather it is possible to make device in availabe state? if for same reason os is not able to make it in available state. and it is in define state. (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

4. AIX

Open firmware state to running state

Hi Admins, I am having a whole system lpar in open firmware state on HMC. How can I bring it to running state ? Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

5. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
pods::SDLx::Controller::Interface(3pm)			User Contributed Perl Documentation		    pods::SDLx::Controller::Interface(3pm)

NAME
SDLx::Controller::Interface - Interface Physics and Rendering with the Controller with callbacks CATEGORY
Extension, Controller SYNOPSIS
use SDL; use SDLx::App; use SDLx::Controller::Interface; #SDLx::App is a controller my $app = SDLx::App->new(width => 200, height => 200 ); my $ball = SDLx::Controller::Interface->new( x=> 10, y => 50, v_x => 10, v_y=> 20 ); #Set the initial state of the ball's physics, this is optional $ball->set_acceleration( sub { my ($time, $current_state) = @_; return( 0, -10, 0 ); # Return accelerations (x,y,rotation) } ); my $ball_render = sub { my $state = shift; $app->draw_rect( undef, 0 ); $app->draw_rect( [$state->x, $state->y, 10,10], [255,0,0,255] ); $app->update(); }; $ball->attach( $app, $ball_render, @params ); $app->run(); $ball->detach(); #can be called at anytime (for example when ball 'dies') DESCRIPTION
METHODS
set_acceleration Allows you to set the acceleration callback for defining the interface's behaviour in terms of x,y and rotation. $interface->set_acceleration ( sub { my ($time, $current_state) = @_; return ( $accel_x, $accel_y, $torque ); } ); These accelerations are arbitrary and can be set to any frame of reference. Your render callback will handle how to interpret it. The callback will receive the time and the current state as a "SDLx::Controller::State" element. attach Attaches the interface to a controller with a render callback $interface->attach( $controller, $render, @params ); Where $render is a callback that receives the interpolated "SDLx::Controller::State". my $render = sub { my ($state, @params) = @_; # draw the current $state. }; The @params are any extra parameters you would like to pass to the $render callback. current my $current_state = $interface->current(); Returns the current state of the interface as a "SDLx::Controller::State". previous my $previous_state = $interface->previous(); Returns the previous state of the interface as a "SDLx::Controller::State". detach $interface->detach(); If $interface has been "attach()"'ed to any controller it will be detached now. OTHER METHODS
Don't use these unless you really really want to. acceleration Call the acceleration callback once. interpolate Interpolate the current state evaluate Evaluate the new current and previous state. update Update the states by integrating with time. AUTHORS
See "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDLx::Controller::Interface(3pm)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy