![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /BdbTransfer/BdbPTRemoteCopy.cc File Reference
#include "BaBar/BaBar.hh"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <pwd.h>
#include <grp.h>
#include "BdbTransfer/BdbPTosSpecific.h"
#include "BdbTransfer/BdbPTRemoteCopyFile.h"
#include "BdbTransfer/BdbPTRemoteCopySocket.h"
#include "BdbTransfer/BdbPTRemoteCopySend.h"
#include "BdbTransfer/BdbPTRemoteCopyRecv.h"
#include "BdbTransfer/BdbPTRemoteCopyError.h"
#include "BdbTransfer/BdbPTVerbose.h"
Go to the source code of this file.
Functions
void usage (void) int checkServerProtocol (BdbPTRemoteCopySocket &socket) int serverCheckAndShutdown (const char *filespec, int port, int shutdown) int clientHandshake (BdbPTRemoteCopySocket &socket, BdbPTRemoteCopyAction &action, const char *pathname, unsigned threadnum, size_t bufsize) int main (int argc, char *argv[]) Variables
char cvsid [] = "$Id: BdbPTRemoteCopy.cc,v 1.12 1999/07/29 18:36:20 svarovsk Exp $" int clientProtocol = 2 int transferOptions = 0 Function Documentation
int checkServerProtocol ( BdbPTRemoteCopySocket & socket ) [static]
Definition at line 63 of file BdbPTRemoteCopy.cc.
References clientProtocol, EPRT, BdbPTRemoteCopySocket::readInt(), VERBOSEMSG, and BdbPTRemoteCopySocket::writeInt().
Referenced by clientHandshake(), and serverCheckAndShutdown().
int clientHandshake ( BdbPTRemoteCopySocket & socket, BdbPTRemoteCopyAction & action, const char * pathname, unsigned threadnum, size_t bufsize ) [static]
Definition at line 123 of file BdbPTRemoteCopy.cc.
References BdbPTRemoteCopyAction, buffer, checkServerProtocol(), BdbPTRemoteCopySocket::readInt(), transferOptions, BdbSocketStream::write(), and BdbPTRemoteCopySocket::writeInt().
Referenced by main().
int main ( int argc, char * argv[] )
int serverCheckAndShutdown ( const char * filespec, int port, int shutdown ) [static]
Definition at line 78 of file BdbPTRemoteCopy.cc.
References checkServerProtocol(), BdbSocket::close(), BdbSocketInetStream::connect(), ECON, BdbPTRemoteCopyFile::getHostname(), BdbPTRemoteCopyFile::getPort(), GOOD, BdbSocket::open(), BdbPTRemoteCopyFile::parse(), port, VERBOSEMSG, and BdbPTRemoteCopySocket::writeInt().
Referenced by main().
void usage ( void ) [static]
Definition at line 49 of file BdbPTRemoteCopy.cc.
Variable Documentation
int clientProtocol = 2 [static]
Definition at line 45 of file BdbPTRemoteCopy.cc.
Referenced by checkServerProtocol().
char cvsid[] = "$Id: BdbPTRemoteCopy.cc,v 1.12 1999/07/29 18:36:20 svarovsk Exp $" [static]
Definition at line 42 of file BdbPTRemoteCopy.cc.
int transferOptions = 0 [static]
Definition at line 47 of file BdbPTRemoteCopy.cc.
Referenced by clientHandshake(), and main().
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002