Class ChunkRevisions.DownloadFileFromServer

java.lang.Object
zombie.network.ChunkRevisions.DownloadFileFromServer
Enclosing class:
ChunkRevisions

public static class ChunkRevisions.DownloadFileFromServer
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    UdpConnection connection  
    java.nio.ByteBuffer data  
    java.lang.String fileName  
    int port  
    java.net.Socket socket  
    java.io.InputStream socketInputStream  
  • Constructor Summary

    Constructors
    Constructor Description
    DownloadFileFromServer​(UdpConnection udpConnection, java.lang.String string)  
  • Method Summary

    Modifier and Type Method Description
    boolean connect()  
    boolean download()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • connection

      public UdpConnection connection
    • port

      public int port
    • fileName

      public java.lang.String fileName
    • socket

      public java.net.Socket socket
    • socketInputStream

      public java.io.InputStream socketInputStream
    • data

      public java.nio.ByteBuffer data
  • Constructor Details

    • DownloadFileFromServer

      public DownloadFileFromServer​(UdpConnection udpConnection, java.lang.String string)
  • Method Details

    • connect

      public boolean connect()
    • download

      public boolean download()