public void sendData(CMD_MINERO comando, byte[] data) { if (clientSock.Connected) { byte[] cmd = new byte[1]; cmd[0] = (byte)comando; clientSock.Send(cmd); clientSock.Send(data); } }
public MineroEventArgs(CMD_MINERO cmd, byte[] datos, int dataLenght) { comando = cmd; data = datos; dataL = dataLenght; }