Google Flix Engine Linux Reference Manual Instrukcja Użytkownika Strona 163

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 545
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 162
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 ON2_NET_ERROR 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:
ON2_OK the engine successfully created and initialized a FLIX2HANDLE for use in
FLIXENGINE_API functions.
ON2_INVALID_PARAMS should the precondition fail
ON2_NO_MEM memory could not be allocated for the FLIX2HANDLE
ON2_NET_ERROR the underlying communication layer failed. Call Flix2_Errno() 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 ON2_-
NET_ERROR 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
Przeglądanie stron 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 544 545

Komentarze do niniejszej Instrukcji

Brak uwag