Skip to content

Commit

Permalink
Commit inicial
Browse files Browse the repository at this point in the history
  • Loading branch information
iagocolodetti committed Aug 14, 2019
0 parents commit 702079e
Show file tree
Hide file tree
Showing 20 changed files with 5,483 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/nbproject/private/
/build/
/dist/
339 changes: 339 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[Downloads](https://github.com/iagocolodetti/TransferirArquivo/blob/master/README.md#downloads "Downloads")
<br>
[Descrição](https://github.com/iagocolodetti/TransferirArquivo/blob/master/README.md#descri%C3%A7%C3%A3o "Descrição")
<br>
[Funcionamento](https://github.com/iagocolodetti/TransferirArquivo/blob/master/README.md#funcionamento "Funcionamento")
<br>
[Requisitos](https://github.com/iagocolodetti/TransferirArquivo/blob/master/README.md#requisitos "Requisitos")
<br>
[Projeto](https://github.com/iagocolodetti/TransferirArquivo/blob/master/README.md#projeto "Projeto")
<br>
<br>
# Downloads
https://github.com/iagocolodetti/TransferirArquivo/releases
* [TransferirArquivo.jar](https://github.com/iagocolodetti/TransferirArquivo/releases/download/v1.0/TransferirArquivo.jar "TransferirArquivo.jar")
* [Código-fonte](https://github.com/iagocolodetti/TransferirArquivo/archive/v1.0.zip "v1.0.zip")
* [Cliente Android](https://github.com/iagocolodetti/TransferirArquivoAndroid/blob/master/README.md#downloads "TransferirArquivoAndroid#Downloads")
# Descrição
Projeto desenvolvido com o objetivo de fazer a conexão entre Servidor e Cliente para a transferência de arquivos de maneira bidirecional, ou seja, Servidor e Cliente pode tanto receber quanto enviar arquivos.
<br>
Servidor e Cliente estão na mesma aplicação, na mesma "view" em janelas/abas diferentes, como pode ser visto nas imagens demonstrativas abaixo.
<br>
<h3>Servidor</h3>
<br>
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivoservidor1.png" alt="Servidor desligado">
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivoservidor2.png" alt="Servidor ligado">
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivoservidor3.png" alt="Servidor ligado e Cliente conectado">
<br>
<br>
<h3>Cliente</h3>
<br>
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivocliente1.png" alt="Cliente desconectado">
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivocliente2.png" alt="Cliente conectado">
<br>
<br>
<h3>Tela selecionar arquivos em lote</h3>
<br>
<img src="https://github.com/iagocolodetti/imagens/blob/master/transferirarquivolote.png" alt="Tela selecionar arquivos">
<br>
<br>

# Funcionamento
Ao ligar o Servidor fornecendo a porta desejada e o diretório para o recebimento de arquivos, o IP do Servidor é exibido no campo "IP".
<br>
Com o IP e porta do Servidor o Cliente será capaz de conectar-se ao Servidor usando o IP e porta do mesmo e claro, selecionando o diretório em que deseja receber arquivos.
<br>
Após a conexão entre Servidor e Cliente for estabelicida, ambos poderão transferir arquivos de maneira bidirecional, porém singular (um arquivo por vez e enquanto estiver recebendo um arquivo, não poderá enviar um arquivo).

# Requisitos
Uso/instalação do [Java Runtime Environment (JRE)](https://www.java.com/pt_BR/download "Java Runtime Environment (JRE)").
<br>
O Servidor (PC) e o Cliente (PC/Android) devem estar conectados à mesma rede.
<br>
A porta selecionada no Servidor deverá estar aberta/liberada localmente.
<br>
<br>
# Projeto
Desenvolvido no NetBeans IDE 8.2 usando a linguagem Java e usando as tecnologias Socket e Thread.
73 changes: 73 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="TransferirArquivo" default="default" basedir=".">
<description>Builds, tests, and runs the project TransferirArquivo.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="TransferirArquivo-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
3 changes: 3 additions & 0 deletions manifest.mf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build

Loading

0 comments on commit 702079e

Please sign in to comment.