Flix2_createex(), Flix2_createex, Flix2_destroy – Google Flix Engine Linux Reference Manual User Manual
Page 163
5.38 Main Engine Interface
157
Remarks:
Linux Only:
Attempts first to connect portmap on localhost. Upon successful query of flixd’s port,
initiates a connection to the rpc server, flixd, which registers the encoding session. Failing either of
these
is returned.
5.38.2.3
on2sc Flix2_CreateEx (FLIX2HANDLE ∗ pFlix, const char ∗ rpchost, int32_t timeout)
Create a handle to the flix engine.
Initializes a FLIX2HANDLE for use in subsequent FLIXENGINE_API calls.
Parameters:
→ pFlix storage location to receive the value of the created FLIX2HANDLE
← rpchost hostname/IPv4 address where flixd is running NULL may be used in which case the con-
nection will be attempted on localhost.
← timeout timeout in seconds for the underlying communication layer. Passing 0 will use the default,
typically 25s.
Return values:
the engine successfully created and initialized a FLIX2HANDLE for use in
FLIXENGINE_API
functions.
should the precondition fail
memory could not be allocated for the FLIX2HANDLE
the underlying communication layer failed. Call
for further infor-
mation.
Common clnt_stat values in this case are:
• RPC_SYSTEMERROR (12) errno=ECONNREFUSED (111) - connection to portmap on
rpchost
failed
• RPC_UNKNOWNHOST (13) - rpchost name lookup failed
• RPC_PROGNOTREGISTERED (15) - flixd is not registered with portmap on rpchost
For a complete listing see: rpc/clnt.h
Precondition:
pFlix
is not NULL
Note:
Available on Linux only.
Remarks:
Attempts first to connect to portmap on rpchost. Upon successful query of flixd’s port, initiates a
connection to the rpc server, flixd, which registers the encoding session. Failing either of these
is returned.
rpchost
may be given in the form:
’server:port’
to connect to flixd directly (if it was run with the -port option) to bypass the connection to portmap.
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen