Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xvgrabport(3) [centos 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.9 XvGrabPort(3)

Check Out this Related 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)
Man Page

15 More Discussions You Might Find Interesting

1. Cybersecurity

port 111

hi if i do a portscan on my fbsd box, i got one port that i don't want to see it open that's port 111, sunrpc, how can i close it? and also my-sql port 1433 and port 1523 (cichild-lm) tnx for your help!! (6 Replies)
Discussion started by: Stormpie
6 Replies

2. UNIX for Dummies Questions & Answers

iptables: forwarding a port

I've been googling for a while now, trying to forward port 3000 to port 80.... In the past I used to DLink router to forward port 3000 to 80. I recently finished (well, is it ever done anyhow?) setting up my linux box and got it acting as a router. I want to continue to run Apache on port 80... (1 Reply)
Discussion started by: meeps
1 Replies

3. UNIX for Dummies Questions & Answers

What application is using the port

Hello im using sunos im trying to lock down application that taking my port when Im doing "netstat -in | grep 8080" Is gives me the indication that the port is taken but no indication who is taken the port. How can I find out who is taking my port? Thanks allot (7 Replies)
Discussion started by: umen
7 Replies

4. Programming

port 23

Hi All, I have conencted to port 23(Telnet port) through a C program but even if i tried recv() nothing was printed on the screen. Regards, Sayantan (2 Replies)
Discussion started by: Sayantan
2 Replies

5. Programming

How to block a port

(1 Reply)
Discussion started by: Saurabh78
1 Replies

6. IP Networking

How to block a port

Hi, i faced a problem, where i have to block a port, therefore nobody used it, evenwith SO_REUSEADDR flag. How can i achive it. (4 Replies)
Discussion started by: Saurabh78
4 Replies

7. Solaris

Finding port number !!

Hi all , I want know the port no on which a particular application is running. How to find that? Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies

8. 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

9. 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

10. Shell Programming and Scripting

Column to Rows

I need some help with this. I got a file with the following format : switch A port 2/6 port 2/7 port 3/8 switch B port 1/2 port 1/5 switch C port 3/1 port 3/2 port 3/3 port 3/4 etc ... I need this to be converted into : (5 Replies)
Discussion started by: pepo2
5 Replies

11. Shell Programming and Scripting

Change specific occurence with sed

Hello, I have this file. aaa port=1234 time bbb port=2233 name ccc port=4444 name Is there any way with sed to change only the occurence of "port" which comes after section to have as output : (12 Replies)
Discussion started by: rany1
12 Replies

12. Solaris

ip details for interface requests.

Hi All, I have an interface port configured to a FBOL server. This port receives requests from various hosts. I want to know at any moment of time ip addresses of all those hosts from which the requests are coming in. Please help me with command/script. (2 Replies)
Discussion started by: digitalrg
2 Replies

13. 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

14. AIX

How to re-route traffic from one port to another?

Hi Friends, How to do port forwarding in AIX? We would like to re route traffic from port A to port B on AIX LPAR. for example: my application is using 8080 port on LPAR and would like to use the 8081 instead of 8080. By default application was configured with 8080. But instead of changing... (2 Replies)
Discussion started by: System Admin 77
2 Replies

15. Shell Programming and Scripting

Help Generate new port base on the last port but not in used by other application

Hi Expert, Anybody can figure it out on how to generate new port base on my last port let say my last port var1=124 and increment for new port 125,126 but this new two ports need to look at first if this port is not in used by any service, if the port is in used add 1 to new port and if in used... (6 Replies)
Discussion started by: lxdorney
6 Replies