Search:

Type: Posts; User: tehuknownjedi

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,102

    I'll try that, thanks.

    I'll try that, thanks.
  2. Replies
    3
    Views
    1,102

    Corrupted binary data

    The file sender, when sending the data locally(127.0.0.1, or my IP address), is sent fine and works. However, when I try to send it to another computer, the data is always corrupted. Everything is...
  3. Replies
    7
    Views
    1,253

    I got it to work by modifying the while loop, and...

    I got it to work by modifying the while loop, and using read() instead. Thanks for the replies everyone.
  4. Replies
    7
    Views
    1,253

    I'm doing it because I don't want to send the...

    I'm doing it because I don't want to send the entire file in one send, since it's crashed the program before, and would not allow me to see the progress of the send.

    Well, thanks anyway.
  5. Replies
    7
    Views
    1,253

    I checked the return result, and both times it's...

    I checked the return result, and both times it's 1024. It only runs through the while loop twice.
  6. Replies
    7
    Views
    1,253

    Binary data

    while(fileones.get(buffer, 1024))
    {
    send(mysocket, buffer, 1024, 0);
    ZeroMemory(buffer, 1024); // reset buffer
    }


    Before asking where I declared mysocket, buffer,...
  7. Replies
    13
    Views
    1,201

    The problem is not with the other end, the...

    The problem is not with the other end, the problem is with read(). The buffer without being sent over sockets, still is only like 3 bytes.
  8. Replies
    13
    Views
    1,201

    When the buffer reaches the other end, I write...

    When the buffer reaches the other end, I write the buffer to file. And only a small ammount of the original file is sent and written.
  9. Replies
    13
    Views
    1,201

    thanks, but that stuff isn't the problem. I can...

    thanks, but that stuff isn't the problem. I can succesfully open a text file, and send it. But when trying to open a bin file(like "encrypt.exe"), it only reads a small ammount.
  10. Replies
    13
    Views
    1,201

    http://rafb.net/paste/results/pCFBDE69.html

    http://rafb.net/paste/results/pCFBDE69.html
  11. Replies
    13
    Views
    1,201

    that isn't the problem. that mistake was made...

    that isn't the problem. that mistake was made while posting the code(filesize is declared and value is set before memblock).
  12. Replies
    13
    Views
    1,201

    filename = "encrypter.exe"; ifstream...

    filename = "encrypter.exe";

    ifstream file(filename, ios::in|ios::binary|ios::ate);

    if(file.is_open())
    {
    char* memblock = new char[filesize];
    int filesize = thefile.tellg();...
  13. Replies
    13
    Views
    1,201

    binary file

    When using read() to read a binary file's data, it only gets the first byte, like: ÿû’D

    Does anyone know how I might be able to fix this?
Results 1 to 13 of 13