fork download
  1. public class Client
  2. {
  3. //Server Infos
  4. IPEndPoint endPoint;
  5.  
  6. //Client
  7. public TcpClient client;
  8. ServerCommunication ServerComm = new ServerCommunication();
  9. PacketManager _PacketManager = new PacketManager();
  10.  
  11. //Threads
  12. UnityThreading.ActionThread clientThread;
  13.  
  14. //Misc
  15. ASCIIEncoding encoder = new ASCIIEncoding();
  16.  
  17.  
  18. //Connect to the Server
  19. public void ConnectToServer()
  20. {
  21. endPoint = new IPEndPoint(IPAddress.Parse("84.190.122.118"), 20000);
  22. client = new TcpClient();
  23. client.Connect(endPoint);
  24. if (client.Connected)
  25. clientThread = UnityThreadHelper.CreateThread(() => { ServerComm.ReadMessages(client); }); //<- Open a Thread and start them
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(4,5): error CS0246: The type or namespace name `IPEndPoint' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(7,12): error CS0246: The type or namespace name `TcpClient' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(8,5): error CS0246: The type or namespace name `ServerCommunication' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(9,5): error CS0246: The type or namespace name `PacketManager' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(12,9): error CS0246: The type or namespace name `UnityThreading' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(15,9): error CS0246: The type or namespace name `ASCIIEncoding' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 6 error(s), 0 warnings
stdout
Standard output is empty