Search:

Type: Posts; User: athos

Search: Search took 0.00 seconds.

  1. Thread: Sockets program

    by athos
    Replies
    5
    Views
    2,024

    Here is the server side of my sockets program. ...

    Here is the server side of my sockets program.



    // winsock for our network communication
    #include <winsock2.h>
    // stdio for I/O
    #include <stdio.h>
    #include <iostream.h>
    #include <time.h>
  2. Thread: Sockets program

    by athos
    Replies
    5
    Views
    2,024

    Sockets program

    I have to send data over the internet and I have a working windows sockets program that does it but after like sending a command about 50 times or so, the link goes bad and I cant send any more...
  3. Thread: Getkey function

    by athos
    Replies
    9
    Views
    11,350

    I just need to be able to take a keyboard input...

    I just need to be able to take a keyboard input character and save it to a variable. Sorry I'm dont program enough to be good at it. :confused:
  4. Thread: Getkey function

    by athos
    Replies
    9
    Views
    11,350

    Getkey function

    I just need an example of the getkey funcion use. Any example willl work i just dont have my reference book and i havent been able to find a good source on the internet(except forums) for answering...
  5. Replies
    3
    Views
    6,999

    Thanks man i completely forgot about that. Damn...

    Thanks man i completely forgot about that. Damn short term memory. I cant try it now but im sure thats the problem. :D
  6. Replies
    3
    Views
    6,999

    Array bounds overflow

    hey im getting an array bounds overflow....



    if (command == 1)
    {
    char outMessage[1] = "1";
    nBytes = send(mySocket, outMessage, sizeof(outMessage), 0);
    printf("Message...
  7. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    Thank you all so much for your help!! I finally...

    Thank you all so much for your help!! I finally got everything working you guys are great. I will keep looking around on here so maybe i can return the favor for someone.

    Thanks again:D :D :D :D
  8. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    The only problem i have with my code...

    The only problem i have with my code now(hopefully) is that i need to store a string of characters from kbhit() instead of only one character. answer= getch() works great for one character. I dont...
  9. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    Your code works but i dont think i can use cin...

    Your code works but i dont think i can use cin because im using kbhit() and cin will stop my loop.
  10. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    Getstr

    Thanks alot guys I have the utmost faith in this website and the help provided. It has all worked! One more question though. I need to compare a two strings of characters, one will be a saved...
  11. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    Nevermind, im a dumbass!! i wont even tell anyone...

    Nevermind, im a dumbass!! i wont even tell anyone what i did for fear of ostricization from this forum. thanks everbody:o
  12. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    unknown error.

    Thanks for the kbhit() it works great! but i now have an error that i cannot fix. The error is "local function definitions are illegal". Its pointing to the beginning of a function that i think i...
  13. Thread: Real time issues

    by athos
    Replies
    13
    Views
    2,210

    Real time issues

    I have to create a loop that must end upon keyboard input. If no input is receieved in say 15 seconds the loop must end. After the keyboard input, the system must compare the input to a saved...
Results 1 to 13 of 13