Search:

Type: Posts; User: trooper

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,591

    Finally i'm tryin to use select() But select...

    Finally i'm tryin to use select()

    But select always return -1 .... any idea ?

    client side:
    FD_ZERO(&readset);
    FD_SET(mySocket, &readSet);
    timeVal.tv_sec = 1;
    timeVal.tv_usec = 0;
  2. Replies
    2
    Views
    2,591

    Avoiding program blocking while recv()

    I need to send many chunks of a file through a socket ... while looping, the client need to check for incoming messages from the server.

    ex:



    while(1)
    {
    //check for incoming message from...
  3. Replies
    6
    Views
    2,525

    I think that the formula as was looking for looks...

    I think that the formula as was looking for looks like ...

    BSC = 0;
    BSC ^= a[0];
    BSC ^= a[1];
    .
    .
    .
    .
    .
  4. Replies
    6
    Views
    2,525

    Humm if we can add char value into an int, I'll...

    Humm if we can add char value into an int, I'll try this ... thanks
  5. Replies
    6
    Views
    2,525

    If I understand the explanations, I have to loop...

    If I understand the explanations, I have to loop and do an addition with the binary value of each char (on the client side and on the server side). Then I'll know if this is the same exact value.
    ...
  6. Replies
    5
    Views
    2,652

    Hummmm I don't know much about hidden...

    Hummmm

    I don't know much about hidden functionnality behing sockets but I already send some text ("ABCDE") through a char and i can get it back on the other side ("ABCDE") .

    i guess it's called...
  7. Replies
    5
    Views
    2,652

    I'm totally lost :) I'm sending a char[]...

    I'm totally lost :)

    I'm sending a char[] through a socket and I want to send some numeric information.

    I guess you mean using those operators >> << ...

    I will go read about this !

    Thank...
  8. Replies
    5
    Views
    2,652

    Unsigned Short to Char[X]

    I need to take a value out of an unsigned short and add it to a char array.

    ex.:

    unsigned short a = 6849;
    char b[20];

    any idea about how to place "6849" into b ?

    Thank you !
  9. Replies
    6
    Views
    2,525

    Block Sum Check

    It's probably easy for most of you but ... is there and easy way to get a BSC from a char array ... ex.: char buffer[20]; ?

    thank you !
  10. Thread: simple proxy

    by trooper
    Replies
    7
    Views
    1,981

    This is an assignment ! :) I'm ok with socket...

    This is an assignment ! :)

    I'm ok with socket and circular buffer. But I know I will have some problems with threads. I will probably find a way to slow the rate and calculate crc with some...
  11. Thread: simple proxy

    by trooper
    Replies
    7
    Views
    1,981

    simple proxy

    Hi all, I have to program a proxy who will accept connections from multiple clients. The proxy must identify the client with logins and passwords stocked in a file. The clients tranfer blocks of...
Results 1 to 11 of 11