23 #ifdef DtUSE_UTILITIES_NAMESPACE
24 namespace DtUSE_UTILITIES_NAMESPACE
54 typedef void (*DtInetFileTransferedCallbackFn)
77 bool findFirstAvailable =
false,
78 int portRangeToTry = 10,
81 bool useIpv6 =
false);
91 virtual unsigned int port()
const;
95 virtual void addFileTransferedCallback(
96 DtInetFileTransferedCallbackFn fn,
void* data);
97 virtual void removeFileTransferedCallback(
98 DtInetFileTransferedCallbackFn fn,
void* data);
101 virtual bool sendFile(
105 virtual bool sendFile(
119 static bool receiveFileCb(
DtInetSocket* sock,
void* usr);
133 virtual int nextFileIdentifier();
141 virtual bool readFileToBuffer(std::ifstream& inFile,
142 std::vector<char>& fileBuffer,
int fileLengthInBytes,
int& retBufLen,
143 DtInetFileTransportFlags& flags);
172 #ifdef DtUSE_UTILITIES_NAMESPACE
This file contains the declaration of DtFilename.
std::map< DtInetFileTransferedCallbackFn, void * > FileTransferedCallbackMapType
Definition: vlInetFileTransport.h:160
Contains the DtString class declaration.
The DtInetSocket class provides a protocol independant, address family independant base class for TCP...
Definition: vlInetSocket.h:201
int myPort
Definition: vlInetFileTransport.h:165
DtFileObjectMap myActiveFiles
Definition: vlInetFileTransport.h:169
Definition: vlInetFileTransport.h:33
unsigned long myBytesReceived
Definition: vlInetFileTransport.h:45
DtInetFileTransportFlags
Definition: vlInetFileTransport.h:59
FileTransferedCallbackMapType myCallbacks
Definition: vlInetFileTransport.h:164
Represents a IPv4 or IPv6 address.
Definition: vlInetAddr.h:36
std::map< int, DtInetFileTransportObject > DtFileObjectMap
Definition: vlInetFileTransport.h:57
int myFileLength
Definition: vlInetFileTransport.h:43
unsigned long myBufferLength
Definition: vlInetFileTransport.h:44
DtFilename myFilename
Definition: vlInetFileTransport.h:42
This file contains the declaration of the DtInetAddr class.
Instances of DtFilename are DtStrings which convert filenames to the native format.
Definition: vlFilename.h:20
DtInetSocketMgr * mySocketMgr
Definition: vlInetFileTransport.h:166
Definition: vlInetSocketMgr.h:53
Definition: vlInetFileTransport.h:50
int myFileIdentifier
Definition: vlInetFileTransport.h:41
DtFilename myTargetDirectory
Definition: vlInetFileTransport.h:167
provides basic Operating Independent Methods useful to a federate
MANAGEDINTERFACE_DLL void tick(double maxTime)
Tick ManagedInterface.
int myFlags
Definition: vlInetFileTransport.h:47
The DtInetSocket class provides an address family independent stream socket.
Definition: vlInetTcpSocket.h:23
std::vector< char > myBuffer
Definition: vlInetFileTransport.h:46
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109