mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 17:05:39 +02:00
Updated perun.lua for 8.0.0
This commit is contained in:
@@ -63,10 +63,11 @@ internal class TCPController
|
||||
Console.WriteLine("TCP: Waiting for packet");
|
||||
TcpClient tcpClient = tcpServer.AcceptTcpClient(); //if a connection exists, the server will accept it
|
||||
NetworkStream ns = tcpClient.GetStream(); //networkstream is used to send/receive messages
|
||||
//tcpClient.ReceiveBufferSize = 65534;
|
||||
|
||||
while (tcpClient.Connected && !TCPController.boolDone) //while the client is connected, we look for incoming messages
|
||||
{
|
||||
arrReceiveByteArray = new byte[1024]; //the messages arrive as byte array
|
||||
arrReceiveByteArray = new byte[65534]; //the messages arrive as byte array
|
||||
ns.Read(arrReceiveByteArray, 0, arrReceiveByteArray.Length); //the same networkstream reads the message sent by the client
|
||||
strReceivedData = Encoding.ASCII.GetString(arrReceiveByteArray, 0, arrReceiveByteArray.Length);
|
||||
Console.WriteLine("Sender: {0} Payload: {1}", null, strReceivedData);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Perun_v1
|
||||
public partial class form_Main : Form
|
||||
{
|
||||
// Variable definitions
|
||||
public string[] arrSendBuffer = new string[100]; // Mysql send buffer
|
||||
public string[] arrSendBuffer = new string[65534]; // Mysql send buffer
|
||||
public bool boolLetMeOut = false; // Helper to handle system tray
|
||||
|
||||
// ################################ Main ################################
|
||||
|
||||
Reference in New Issue
Block a user