This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
use IO::Socket::INET; | |
$client = IO::Socket::INET->new( | |
PeerAddr=>"localhost", # host do server o server está listening | |
PeerPort => "8081", # porta em que | |
Timeout => 60); # timeout de conexao | |
open (FILE,"<","testeSplit.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
use IO::Socket::INET; | |
print "Server ON"; | |
$server = IO::Socket::INET->new( | |
LocalAddr=>"localhost", # host | |
LocalPort=> "8081", # porta que vai ficar em listening |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package montadora; | |
public abstract class Carros { | |
private String description = "Veiculo"; | |
private String modelN = "Nacional"; | |
private String modelI = "Importado"; | |
public void setmodelN(String mNacional) { | |
modelN = mNacional; |