Search:

Type: Posts; User: cookie

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    5,421

    TCP packets never arrive in a different order....

    TCP packets never arrive in a different order. UDP ones do!
  2. Replies
    17
    Views
    5,421

    Thanks. I knew about sleep(); So that actually...

    Thanks. I knew about sleep(); So that actually reduces the CPU cycles. I makes the program wait a few seconds. I get it.


    THANKS. I still have some problems where the messages you send to the...
  3. Replies
    17
    Views
    5,421

    Thanks. That explains why it used to work at the...

    Thanks. That explains why it used to work at the beginning when i had the array up to 128. I will try and see if it works. How can I make it use less of the CPU?


    THANK YOU!
  4. Replies
    17
    Views
    5,421

    thanks. Now people know what I was talking about....

    thanks. Now people know what I was talking about. I suspect it is from the fork(), not the sockets! Thank you very very much. Still hoping I can get this worked out(with your<<all of you>> of course)
  5. Replies
    17
    Views
    5,421

    Weird

    Well. It keeps writing "Message from serv" or "Message to serv" even after the actual message has been printed. It is hard to explain or show because there things you need to see by running the...
  6. Replies
    17
    Views
    5,421

    Hey. I know I should do some typecasting there,...

    Hey. I know I should do some typecasting there, but it's not a big issue RIGHT NOW. I've done few programs that involved sockets and they work just fine(with a warning at compile-time). I will fix it...
  7. Replies
    17
    Views
    5,421

    Desperate Over Ecs!

    Hello guys. It's me again. With that stupid Encrypted Chat System. I thought I fixed it, but no, I didn't.
    It just keep repeating the stuff in child process. Even if there is no message on the...
  8. Replies
    8
    Views
    14,360

    Yes. Thank You! Now, all I have trouble with is...

    Yes. Thank You! Now, all I have trouble with is the prompt to send a new message to the server. I gotta find a way to fix it. If I have any major trouble. I will ask for help in this thread! It's...
  9. Replies
    8
    Views
    14,360

    Thanks. I just did if(recv(clisock, &buff,...

    Thanks. I just did if(recv(clisock, &buff, sizeof(buff), 0) != 0 && recv(clisock, &buff, sizeof(buff), 0) != 0)


    Thank you very much salem.
  10. Replies
    8
    Views
    14,360

    I knew recv() would wait until it a message was...

    I knew recv() would wait until it a message was available on a socket. That's why i was gonna check the string instead of the recv.
  11. Replies
    8
    Views
    14,360

    Checking if buffer is completely empty...

    Hey guys. I figured out a way to organize the UI for the ECS program I am working on. After I recv() the message from the socket into buff, I could check if it received any message(if the buffer is...
  12. Replies
    1
    Views
    1,456

    Forking Issue...

    Hey guys. Long time no see. I was off the boards for about a year now. I hope I made some progress since last year(concerning C programming).

    I wanted to write an Encrypted Chat System(p2p) and I...
  13. Replies
    11
    Views
    7,945

    I Was Glined

    Mac, I was glined trying to remove my ban! Some guy named IRCop came on to my channel and told me to wrote a command on #gamesurge to remove my ban! Guess what! I was stupid enough to believe it and...
  14. Replies
    11
    Views
    7,945

    #C-help IRC channel

    SERVER
    irc.gamesurge.net

    CHANNEL
    #C-help

    READ MY SIGNATURE!
  15. A simple one

    The brackets separate the rest of the code from the for loop code! If you have only one line of code for the for loop, you do not need to put brackets! However, I think you are required to have them...
  16. Replies
    2
    Views
    1,093

    Incororating a program into another

    I created a collection of programs into I want to incorporat all my programs! I will run the program and select wich program I want to run! How exactly do i do that? Would it work if I would do a...
  17. Replies
    17
    Views
    2,220

    Yeah, I amreading books and 2 tutorials at the same time!

    But what they do, they expect people to know what to do from their one program!

    For example, if you have the second edition of The C Programming Language book go to section 1,9 They make a program...
  18. Replies
    17
    Views
    2,220

    Thanks Guys!

    I can understand it now! Functions really aren't hard! But Call by value and character arrays are!

    What is this call by value, what do they mean it stores memory in an imaginary value!
  19. Replies
    17
    Views
    2,220

    Thank You!

    I understand it all with the prototypes and functions but one more thing remains!

    in the function:



    int mult (int one, int two)
    {
    return one * two;
    }
  20. Replies
    17
    Views
    2,220

    Ok!

    So I define the prorotype:
    int add(int x, int y);

    this has to be before main! Why do I have to put this too! int add(int, int) why don't I just leave it with the prototype???

    Now another...
  21. Replies
    17
    Views
    2,220

    Prototypes or no?

    I've just learned about functions and I learned that you can put a prototype before the main function and it has to have the ; semicolons and the compiler will not give error!

    But I also think...
  22. Thread: Arrays???

    by cookie
    Replies
    2
    Views
    824

    Arrays???

    I am learning arrays right now and I am being troubled! I understand that they are like more variables into one! If I am wrong, please, please, correct me!

    so instead of doing:
    int no1
    int no2...
  23. Thread: Word Counting

    by cookie
    Replies
    18
    Views
    4,988

    what is the differnece?

    What is the difference betwwen mine and yours? Can you pls highlight what u changed?
  24. Thread: Word Counting

    by cookie
    Replies
    18
    Views
    4,988

    Now, it gives me characters for words!

    I fixed the problem where it didn't want to count the words but got into another where it gives me off results at letters! It counts characters, blanks, tabs, lines and all the others right but it...
  25. Thread: Word Counting

    by cookie
    Replies
    18
    Views
    4,988

    I tried your code! It did nto compile, I also messed a bit with it!

    I also tried to understand it! But since I am a very beggining person, I could not understand much of it! One day passed, I wrote no code! I felt like I forgot anything I learned up to that point so...
Results 1 to 25 of 54
Page 1 of 3 1 2 3