[jcifs] network connectivity to a remote machine

Michael B Allen mba2000 at ioplex.com
Wed Jan 7 20:35:13 GMT 2004


> Hi,
>
> Can someone please answer these questions?
>
> How do we test network connectivity to a particular remote machine using JCIFS?
>
> How do we test login to a particular remote machine using the user name and
> password?
>
> I'm trying to transfer files from source to destination using jcfis code (also
> adding the transfer resumption). I wanted to perform the above checks before the
> file transfer.

I belive the SmbSession.logon() method should meet the first two objectives. See
the FAQ. For "tansfer resumption" use SmbFileXxputStream.skip() or maybe
SmbRandomAccessFile.

Mike

-- 
A program should be written to  model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the  potential for it  to be applied  to tasks that are
conceptually similar and, more  important, to tasks that have not
yet been conceived.


More information about the jcifs mailing list