eBUS SDK .NET API
  • Getting Started
    • Getting started with the eBUS SDK .NET API
    • Configuring Your IDE
    • Receiving Data from a GigE Vision or USB3 Vision Transmitter
    • Sample Applications
    • GigE Vision Device Communication Parameters
    • USB3 Vision Device Communication Parameters
    • PvStream USB3 Vision Parameters
    • PvStream GigE Vision Parameters
  • eBUS SDK .NET API Reference
    • API Overview
    • eBUSDotNet
    • eBUSDotNetReceive
    • eBUSDotNetEdge
Search Results for

    Show / Hide Table of Contents
      • GenDCComponentFlagsGroup
      • GenDCComponentHeader
      • GenDCComponentHeaderBase
      • GenDCComponentType
      • GenDCContainerFlagsGroup
      • GenDCContainerHeader
      • GenDCContainerHeaderBase
      • GenDCContainerVariableFieldsGroup
      • GenDCFlowTable
      • GenDCFlowTableHeader
      • GenDCGenericPartType
      • GenDCHeaderType
      • GenDCInfoTypeSpecificH264
      • GenDCInfoTypeSpecificH264.H264Flags
      • GenDCInfoTypeSpecificJPEG
      • GenDCPartFlagsGroup
      • GenDCPartHeader
      • GenDCPartHeader1D
      • GenDCPartHeader1DBase
      • GenDCPartHeader2D
      • GenDCPartHeader2DBase
      • GenDCPartHeaderBase
      • GenDCPartHeaderGenICamChunk
      • GenDCPartHeaderGenICamXML
      • GenDCPartHeaderH264
      • GenDCPartHeaderJPEG
      • GenDCPartHeaderJPEG2000
      • GenDCPartType
      • GenDCPredefinedComponentValue
      • GenDCPredefinedPartValue
      • GenDCPredefinedValue16
      • GenDCPredefinedValue32
      • GenDCPredefinedValue64
      • GenDCReservedValue
      • GenDCSignature
      • GenDCVersionValue
      • IPvChunkData
      • IPvFilter
      • IPvGenDCChunkData
      • IPvGenDCChunkWriter
      • IPvGenDCImage
      • IPvGenDCManager
      • IPvGenericDataComponent
      • IPvGenericDataContainer
      • IPvGenericDataPart
      • IPvH264AccessUnit
      • IPvImage
      • IPvImageJPEG
      • IPvMultiPartContainer
      • IPvMultiPartContainerReader
      • IPvMultiPartContainerWriter
      • IPvMultiPartSection
      • OnDeviceFoundHandler
      • OnParameterUpdateHandler
      • PvBuffer
      • PvChunkData
      • PvComponentType
      • PvCompressionFilter
      • PvDeInterlacer
      • PvDecompressionFilter
      • PvDeviceClass
      • PvDeviceInfo
      • PvDeviceInfoGEV
      • PvDeviceInfoPleoraProtocol
      • PvDeviceInfoType
      • PvDeviceInfoU3V
      • PvDeviceInfoUSB
      • PvDeviceType
      • PvEncodingEnum
      • PvException
      • PvFPSStabilizer
      • PvGenAccessMode
      • PvGenBoolean
      • PvGenCache
      • PvGenCategory
      • PvGenCommand
      • PvGenDCPart1DFields
      • PvGenDCPart2DFields
      • PvGenDCPartH264Fields
      • PvGenDCPartH264Fields.H264Flags
      • PvGenDCPartMetadataFields
      • PvGenDCPartType
      • PvGenDCVariableField
      • PvGenEndianness
      • PvGenEnum
      • PvGenEnumEntry
      • PvGenEventSink
      • PvGenEventSinkSwigInterface
      • PvGenFile
      • PvGenFloat
      • PvGenInteger
      • PvGenNameSpace
      • PvGenOpenMode
      • PvGenParameter
      • PvGenParameterArray
      • PvGenParameterList
      • PvGenRefresh
      • PvGenRegister
      • PvGenRepresentation
      • PvGenSign
      • PvGenStateStack
      • PvGenString
      • PvGenType
      • PvGenVisibility
      • PvImage
      • PvInterface
      • PvInterfaceType
      • PvMultiPartDataType
      • PvNetworkAdapter
      • PvPayloadType
      • PvPixelType
      • PvPleoraCompressed
      • PvRawData
      • PvResult
      • PvResult.Code
      • PvResult.Code.CodeEnum
      • PvSessionInfo
      • PvString
      • PvStringList
      • PvSystem
      • PvSystemEventSink
      • PvTapFilter
      • PvTapGeometryEnum
      • PvTftpClient
      • PvUSBHostController
      • PvUSBSpeed
      • PvUSBStatus
      • SWIGTYPE_p_PV_GENAPI_NS__INode
      • SWIGTYPE_p_PV_GENAPI_NS__INodeMap
      • SWIGTYPE_p_long_long
      • SWIGTYPE_p_unsigned_char
      • SWIGTYPE_p_unsigned_long_long
      • eBUSDotNet
      • uint24_t

    Class PvTftpClient

    Client used to transfer files over TFTP to and from Pleora devices.

    Inheritance
    object
    PvTftpClient
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: eBUSDotNet
    Assembly: eBUSDotNet.dll
    Syntax
    public class PvTftpClient : IDisposable

    Constructors

    View Source

    PvTftpClient()

    Constructor.

    Declaration
    public PvTftpClient()

    Fields

    View Source

    swigCMemOwn

    Determines who is responsible for deleting the underlying C++ object.

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Properties

    View Source

    TransferResult

    Gets the result of the most recent TFTP transfer.

    Declaration
    public PvResult TransferResult { get; }
    Property Value
    Type Description
    PvResult

    Methods

    View Source

    Abort()

    Aborts the current TFTP transfer operation.

    Declaration
    public PvResult Abort()
    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    Dispose()

    Dispose.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Dispose

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    View Source

    ~PvTftpClient()

    Destructor.

    Declaration
    protected ~PvTftpClient()
    View Source

    GetData(SWIGTYPE_p_unsigned_char, uint, out uint)

    Gets data from a device file using TFTP.

    Declaration
    public PvResult GetData(SWIGTYPE_p_unsigned_char aBuffer, uint aBufferLength, out uint aBytesRead)
    Parameters
    Type Name Description
    SWIGTYPE_p_unsigned_char aBuffer

    Pointer to the buffer where the data is written.

    uint aBufferLength

    The size of the buffer in bytes.

    uint aBytesRead

    Output, the number of bytes read from the device file into aBuffer in bytes.

    Returns
    Type Description
    PvResult

    Includes: - #PvResult::Code::OK - #PvResult::Code::INVALID_PARAMETER if the buffer parameters are invalid - #PvResult::Code::STATE_ERROR if a transfer is already in progress - #PvResult::Code::NOT_INITIALIZED if Init has not been called

    View Source

    GetFile()

    Retrieves a file from the device using TFTP.

    Declaration
    public PvResult GetFile()
    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    GetFile(string)

    Retrieves a file from the device and saves it to the specified path.

    Declaration
    public PvResult GetFile(string aHostFilename)
    Parameters
    Type Name Description
    string aHostFilename

    The path where the file will be saved on the host.

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    GetProgress(out long, out long)

    Gets the progress of the current TFTP transfer.

    Declaration
    public PvResult GetProgress(out long aCompleted, out long aTotal)
    Parameters
    Type Name Description
    long aCompleted

    Output parameter to receive bytes completed.

    long aTotal

    Output parameter to receive total bytes.

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    GetWarning(out string)

    Gets any warning message from the last TFTP operation.

    Declaration
    public PvResult GetWarning(out string aWarning)
    Parameters
    Type Name Description
    string aWarning

    Output parameter to receive the warning message.

    Returns
    Type Description
    PvResult

    PV_OK if there is a warning, error code otherwise.

    View Source

    Init(string, string)

    Initializes the TFTP client with device connection parameters.

    Declaration
    public PvResult Init(string aDeviceIPAddress, string aDeviceFilename)
    Parameters
    Type Name Description
    string aDeviceIPAddress

    The IP address of the device.

    string aDeviceFilename

    The filename on the device.

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    SendData(SWIGTYPE_p_unsigned_char, uint)

    Sends data to a device file using TFTP.

    Declaration
    public PvResult SendData(SWIGTYPE_p_unsigned_char aBuffer, uint aBufferLength)
    Parameters
    Type Name Description
    SWIGTYPE_p_unsigned_char aBuffer

    Pointer to the buffer containing the data to send.

    uint aBufferLength

    The size of the buffer in bytes.

    Returns
    Type Description
    PvResult

    Includes: - #PvResult::Code::OK - #PvResult::Code::INVALID_PARAMETER if the buffer and buffer length are invalid - #PvResult::Code::STATE_ERROR if a transfer is already in progress - #PvResult::Code::NOT_INITIALIZED if Init has not been called

    View Source

    SendFile()

    Sends a file to the device using TFTP.

    Declaration
    public PvResult SendFile()
    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    View Source

    SendFile(string)

    Sends a file from the specified host path to the device.

    Declaration
    public PvResult SendFile(string aHostFilename)
    Parameters
    Type Name Description
    string aHostFilename

    The path of the file to send from the host.

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX