Skip to content

Commit

Permalink
update client and server entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcisio-marinho committed Feb 26, 2020
1 parent 6c8f5cf commit d194c66
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 3 deletions.
Binary file modified bin/Debug/netcoreapp3.0/coronga
Binary file not shown.
Binary file modified bin/Debug/netcoreapp3.0/coronga.dll
Binary file not shown.
Binary file modified bin/Debug/netcoreapp3.0/coronga.pdb
Binary file not shown.
13 changes: 11 additions & 2 deletions client.cs → client/client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@

namespace coronga
{
public class client
public class Main
{
public static void main(string[] args){
Client c = new Client();
c.main(args);
}


}
public class Client
{
public readonly string address = "127.0.0.1";
public IPEndPoint remoteEP;
Expand Down Expand Up @@ -97,7 +106,7 @@ private void exchangeMsgs()
{
// while (true)
{

int count = this.sock.Receive(this.buffer);
var plainMsg = this.aes.Decrypt(this.buffer);
Console.WriteLine("Received: ");
Expand Down
1 change: 1 addition & 0 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Entry
{
static void Main(string[] args)
{
Console.WriteLine("entrou");
}
}
}
Binary file modified obj/Debug/netcoreapp3.0/coronga
Binary file not shown.
11 changes: 11 additions & 0 deletions obj/Debug/netcoreapp3.0/coronga.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@
/home/tarcisio/Projects/coronga/obj/Debug/netcoreapp3.0/coronga.AssemblyInfo.cs
/home/tarcisio/Projects/coronga/obj/Debug/netcoreapp3.0/coronga.dll
/home/tarcisio/Projects/coronga/obj/Debug/netcoreapp3.0/coronga.pdb
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga.deps.json
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga.runtimeconfig.json
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga.runtimeconfig.dev.json
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga.dll
/home/tarcisio/Projects/general/coronga/bin/Debug/netcoreapp3.0/coronga.pdb
/home/tarcisio/Projects/general/coronga/obj/Debug/netcoreapp3.0/coronga.csprojAssemblyReference.cache
/home/tarcisio/Projects/general/coronga/obj/Debug/netcoreapp3.0/coronga.AssemblyInfoInputs.cache
/home/tarcisio/Projects/general/coronga/obj/Debug/netcoreapp3.0/coronga.AssemblyInfo.cs
/home/tarcisio/Projects/general/coronga/obj/Debug/netcoreapp3.0/coronga.dll
/home/tarcisio/Projects/general/coronga/obj/Debug/netcoreapp3.0/coronga.pdb
Binary file modified obj/Debug/netcoreapp3.0/coronga.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.0/coronga.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.0/coronga.pdb
Binary file not shown.
10 changes: 9 additions & 1 deletion server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

namespace coronga.server
{
public class Main
{
public static void main(string [] args){
Server s = new Server();
Console.WriteLine("entrou");
s.main(args);
}
}
public class Server
{
public readonly string address = "127.0.0.1";
Expand Down Expand Up @@ -40,7 +48,7 @@ public void main(string[] args)

int bytesRec = this.sock.Receive(bytes);

sock.Send(new byte[]{255, 255});
sock.Send(new byte[] { 255, 255 });
sock.Shutdown(SocketShutdown.Both);
sock.Close();
}
Expand Down

0 comments on commit d194c66

Please sign in to comment.