Network.TCP.FileServer.sendFile() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to Network.TCP.FileServer Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Network.TCP.FileServer.sendFile(remoteIPAddress:String, remotePortNumber:Number, localIPAddress:String, localPortNumber:Number, localFilePath:String, remoteFilePath:String):Void

Parameters
remoteIPAddress:String - Remote file server IP address

remotePortNumber:Number - Remote file server port number

localIPAddress:String - Local file server IP address

localPortNumber:Number - Local file server port number

localFilePath:String - Path to a file on local machine

remoteFilePath:String - Path to a file on remote server

Returns
Nothing

Description
Transfers a file from the local file server to the remote file server.

Notes
When executed, sets a PPSV (variable) called "mdm_tcpfiletransfer". The value to this PPSV is either "true" if the transfer has finished or "false" if the transfer is still in progress.

Example Code
mdm.Network.TCP.FileServer.sendFile("127.0.0.1", 4000, "127.0.0.1", 4000, "c:\\local.txt", "c:\\remote.txt");

mdm.Network.TCP.FileServer Class Example Downloads
No Example Downloads Available


User Comment by brian-HAI on 3rd June 2008 - 19:52
note that as of version 3.05 this function does not work. http://www.multidmedia.com/support/bugs/?action=detail&id=226

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page