irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rsL3FilePutSingleBuf.cpp
Go to the documentation of this file.
1 
3 /* This is script-generated code (for the most part). */
4 /* See l3FilePutSingleBuf.h for a description of this API call.*/
5 
6 #include "l3FilePutSingleBuf.h"
7 #include "rodsLog.h"
8 #include "dataPut.h"
9 #include "filePut.h"
10 #include "dataObjOpen.h"
11 #include "dataObjPut.h"
12 #include "rsGlobalExtern.hpp"
13 #include "rcGlobalExtern.h"
14 #include "rsApiHandler.hpp"
15 #include "objMetaOpr.hpp"
16 #include "getRemoteZoneResc.h"
17 #include "rsL3FilePutSingleBuf.hpp"
18 #include "rsDataObjPut.hpp"
19 
20 int
21 rsL3FilePutSingleBuf( rsComm_t *rsComm, int *l1descInx,
22  bytesBuf_t *dataObjInBBuf ) {
23  int bytesWritten;
24 
25  if ( dataObjInBBuf->len >= 0 ) {
26  if ( L1desc[*l1descInx].remoteZoneHost != NULL ) {
27  bytesWritten = rcL3FilePutSingleBuf(
28  L1desc[*l1descInx].remoteZoneHost->conn,
29  L1desc[*l1descInx].remoteL1descInx, dataObjInBBuf );
30  }
31  else {
32  bytesWritten = l3FilePutSingleBuf( rsComm, *l1descInx, dataObjInBBuf );
33  }
34  }
35  else {
36  bytesWritten = 0;
37  }
38 
39  return bytesWritten;
40 }
L1desc
l1desc_t L1desc[1026]
Definition: irods_server_globals.cpp:29
NULL
#define NULL
Definition: rodsDef.h:70
rsComm_t
Definition: rcConnect.h:145
getRemoteZoneResc.h
filePut.h
l3FilePutSingleBuf
int l3FilePutSingleBuf(rsComm_t *rsComm, int l1descInx, bytesBuf_t *dataObjInpBBuf)
Definition: rsDataObjPut.cpp:377
l1desc::remoteL1descInx
int remoteL1descInx
Definition: objDesc.hpp:52
rcGlobalExtern.h
BytesBuf::len
int len
Definition: rodsDef.h:198
rsGlobalExtern.hpp
rsL3FilePutSingleBuf
int rsL3FilePutSingleBuf(rsComm_t *rsComm, int *l1descInx, bytesBuf_t *dataObjInBBuf)
Definition: rsL3FilePutSingleBuf.cpp:21
rodsLog.h
BytesBuf
Definition: rodsDef.h:197
dataObjPut.h
rsL3FilePutSingleBuf.hpp
dataPut.h
dataObjOpen.h
rsApiHandler.hpp
l3FilePutSingleBuf.h
rsDataObjPut.hpp
rcL3FilePutSingleBuf
int rcL3FilePutSingleBuf(rcComm_t *conn, int l1descInx, bytesBuf_t *dataObjInBBuf)
Definition: rcL3FilePutSingleBuf.cpp:33
objMetaOpr.hpp