Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xvgrabport(3) [linux man page]

XvGrabPort(3)							  libXv Functions						     XvGrabPort(3)

NAME
XvGrabPort - lock port for exclusive use by client SYNOPSIS
#include <X11/extensions/Xvlib.h> int XvGrabPort(Display *dpy, XvPortID port, Time time); ARGUMENTS
dpy Specifies the connection to the X server. port Defines the port to be grabbed. time Specifies the request timestamp. DESCRIPTION
XvGrabPort(3) grabs a port. Once a client grabs a port, only that client can make video requests to that port. If the time is before the current port time, the XvGrabPort request is ignored and XvInvalidTime is returned. If the port is already grabbed by another client, XvAlreadyGrabbed is returned. Otherwise it returns a status of Success. The port time is updated when the fol- lowing requests are processed: XvGrabPort(3), XvUngrabPort(3), XvPutVideo(3), XvPutStill(3), XvGetVideo(3), XvGetStill(3). If the port is actively processing video for another client, the video is preempted, and an XvVideoNotify event with detail XvPreempted is generated for its drawable. RETURN VALUES
[Success] Returned if XvGrabPort(3) completed successfully. [XvInvalidTime] Returned if requested time is older than the current port time. [XvAlreadyGrabbed] Returned if the port is already grabbed by another client. [XvBadExtension] Returned if the Xv extension is unavailable. [XvBadAlloc] Returned if XvGrabPort(3) failed to allocate memory to process the request. DIAGNOSTICS
[XvBadPort] Generated if the requested port does not exist. SEE ALSO
XvUngrabPort(3), XvVideoNotify(3) X Version 11 libXv 1.0.7 XvGrabPort(3)

Check Out this Related Man Page

XvGrabPort(3X)															    XvGrabPort(3X)

Name
       XvGrabPort - lock port for exclusive use by client

Syntax
       #include <X11/extensions/Xvlib.h>

       XvGrabPort(dpy, port, time)

       Display *dpy;
       XvPortID port;
       Time time;

Arguments
       dpy     Specifies the display screen on which the Xv Server is to accept requests from Xv clients.  If the display option is not specified,
	       Xv uses the display screen specified by your DISPLAY environment variable.  The display	option	has  the  format  hostname:number.
	       Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.

       port    Defines the port to be grabbed.

       time    Specifies the request timestamp.

Description
       XvGrabPort(3X) grabs a port.  Once a client grabs a port, only that client can make video requests to that port.

       If  the	time  is  before  the  current port time, the XvGrabPort request is ignored and XvInvalidTime is returned.  If the port is already
       grabbed by another client, XvAlreadyGrabbed is returned. Otherwise it returns a status of Success.  The port time is updated when the  fol-
       lowing requests are processed: XvGrabPort(3X), XvUngrabPort(3X), XvPutVideo(3X), XvPutStill(3X), XvGetVideo(3X), XvGetStill(3X).

       If  the port is actively processing video for another client, the video is preempted, and an XvVideoNotify event with detail XvPreempted is
       generated for its drawable.

Returned Values
       [Success]
	       Returned if XvGrabPort(3X) completed successfully.

       [XvInvalidTime]
	       Returned if requested time is older than the current port time.

       [XvAlreadyGrabbed]
	       Returned if the port is already grabbed by another client.

       [XvBadExtension]
	       Returned if the Xv extension is unavailable.

       [XvBadAlloc]
	       Returned if XvGrabPort(3X) failed to allocate memory to process the request.

Diagnostics
       [XvBadPort]    Generated if the requested port does not exist.

See Also
       XvUngrabPort(3X) XvVideoNotify(3X)

XFree86 						       Version Version 4.3.0						    XvGrabPort(3X)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Can't I Cast sockaddr to sockaddr_in?!

I'm trying to grab client's port number, by doing the following code: //get client's port number - here we are not dealing with pointers //because the returned value will be passed as a parameter to htons() //htons() takes u_short, which is similar to short, parameter short... (1 Reply)
Discussion started by: f.ben.isaac
1 Replies

2. Red Hat

historical port usage information

are there linux commands or applications that i can use to find out what application was using a certain port at a certain time? there's teamquest,but it doesnt have this kind of information. TIA. (2 Replies)
Discussion started by: bumblebee
2 Replies

3. Infrastructure Monitoring

Solaris 10 - starting snmpdx at boot time on a port other than 161

Hi All, Can we start the snmpdx on another port at boot time on solaris 10 instead of the default 161 port? What is the configuration file to set this? We can make it run in a different port after the system boots up by using snmpdx -p port_number This requirement is because i have an... (1 Reply)
Discussion started by: Mr. Zer0
1 Replies

4. Programming

dlopen failing on library with statically linked dependencies

I am attempting to port a program from OS X to Linux. It's C++ & Qt Creator and I did the original Windows to OS X port, so I tried to make it as POSIX-compliant as possible; the OS X port works well, and the Linux port builds and starts (it's on Ubuntu 9.10) but has some issues running. The... (2 Replies)
Discussion started by: Hodapp87
2 Replies