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(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)
how can i find whether the particular port is free among certain port numbers
like 15000 to 30000 before i connect to the server by assigning the port no for the client (0 Replies)
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)
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)
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)
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)
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)
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)
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)