Its just odd that I can write to it using QFile but not read.
the packet im receiving is 131 bytes long. (in this case, its not a constant depending on the signal Ive tuned, just in this case I know its 131 bytes long)
int BUFFY = 10*188*1024;
char buf[BUFFY];
memset(buf, 0, BUFFY);
int len = read(dmx_fd->handle(), buf, BUFFY);
cout << "Length read: " << len << endl;
int BUFFY = 10*188*1024;
char buf[BUFFY];
memset(buf, 0, BUFFY);
int len = read(dmx_fd->handle(), buf, BUFFY);
cout << "Length read: " << len << endl;
To copy to clipboard, switch view to plain text mode
outputs
Length read: 131
Length read: 131
To copy to clipboard, switch view to plain text mode
int BUFFY = 10*188*1024;
buffer.clear();
buffer = dmx_fd->read(BUFFY);
cout << "Length read: " << buffer.size() << endl;
int BUFFY = 10*188*1024;
buffer.clear();
buffer = dmx_fd->read(BUFFY);
cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode
application locks up on the read()
buffer.clear();
buffer = dmx_fd->read(131);
cout << "Length read: " << buffer.size() << endl;
buffer.clear();
buffer = dmx_fd->read(131);
cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode
application locks up on the read()
buffer.clear();
buffer = dmx_fd->read(1);
cout << "Length read: " << buffer.size() << endl;
buffer.clear();
buffer = dmx_fd->read(1);
cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode
application locks up on the read()
I just cant read anything from it. readAll() does the same. How can I write to it but not read from it ? lol just seems so odd that it wont work.
UDL
Bookmarks