Search:

Type: Posts; User: kristy

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    37
    Views
    3,754

    Um, I actually did read most of it, though I...

    Um, I actually did read most of it, though I didn't read everything that well. I also skippet the last parts (part > 5), and mostly used it as a reference to the functions. I don't like people...
  2. Replies
    37
    Views
    3,754

    That's generous, thanks. :)

    That's generous, thanks. :)
  3. Replies
    37
    Views
    3,754

    The UNIX man page says something like that, too...

    The UNIX man page says something like that, too (I run Mac OS X).

    I'm not new to C or programming in general. But there's a few things with C I've never gotten the hang of, and that has just...
  4. Replies
    37
    Views
    3,754

    I use exit all the time! :D If the predefined...

    I use exit all the time! :D If the predefined macros really are easier to port apps with, I don't know. I just read it, and I wanted to find out what macro that was defined to what value.

    Oh well,...
  5. Replies
    37
    Views
    3,754

    Yeah, that was what I ment, I just didn't explain...

    Yeah, that was what I ment, I just didn't explain it well (English is not my native language). :cool: Usually I use either 0 or -1, but I've heard it's better to use the predefined macros, like...
  6. Replies
    37
    Views
    3,754

    Hm, yeah, maybe telnet is better, though telnet...

    Hm, yeah, maybe telnet is better, though telnet isn't very secure. But on a LAN I guess it's no problem. :)

    Btw, this is a bit off-topic really; I tried to find the available values for the exit()...
  7. Replies
    37
    Views
    3,754

    I just wanted to say thanks for all the help! I...

    I just wanted to say thanks for all the help! I just finished writing my first app that actually works, using sockets. :D anonytmouse, after you pointed out what was wrong it started working much...
  8. Replies
    37
    Views
    3,754

    I should mention that my app fails on connect()....

    I should mention that my app fails on connect(). Usig herror() it says "Resolver Error 0 (no error)" and with perror() it says "Operation timed out". Does this indicate a server or client/code...
  9. Replies
    37
    Views
    3,754

    I guess I was trying to write a client of some...

    I guess I was trying to write a client of some kind. Do you never need to use bind when you create a client?

    As long as the port is open, I can get a response from the host? How about if you try...
  10. Replies
    37
    Views
    3,754

    I did read it, and I didn't get it. I don't get...

    I did read it, and I didn't get it. I don't get why the *-operator is used twice..

    I tried to write some code (which I guess clearly shows I don't know what I'm doing!), and it fails on the bind...
  11. Replies
    37
    Views
    3,754

    The casting in the last code snippet screams...

    The casting in the last code snippet screams confusion to me. :rolleyes: :cool: I get that inet_ntoa() takes a struct of the type in_addr, but why the * both in front of the cast and inside the...
  12. Replies
    37
    Views
    3,754

    Yeah, I probably should. Network programming...

    Yeah, I probably should. Network programming tends to psyche me out though. Even the smallest programs are very advanced. I'm not very good with pointers yet, and strucs are, as already mentioned,...
  13. Thread: Doc generator

    by kristy
    Replies
    2
    Views
    1,258

    Thanks! :D

    Thanks! :D
  14. Replies
    37
    Views
    3,754

    I think I've misunderstood the function...

    I think I've misunderstood the function gethostbyname().. Whatever input I give the function, IP or domain name, it only returns the input. That can't be right, can it? The code is this:
    #include...
  15. Replies
    37
    Views
    3,754

    Isn't the -> and . equivalent? I always thought...

    Isn't the -> and . equivalent? I always thought so at least.. :rolleyes: I tried both in my code, and only the -> worked, as you suggested, anonytmouse. Thanks! :)
  16. Replies
    37
    Views
    3,754

    gethostbyname and structs

    I'm trying to some something that should be pretty simple; use the gethostbyname()-function. My problem is that I don't understand what the struct is doing, and why I need it. Structs in general...
  17. Thread: loop issues

    by kristy
    Replies
    3
    Views
    4,923

    Thank you for your reply, Salem. It was a good...

    Thank you for your reply, Salem. It was a good idea to split up the function, it was definitely getting too large.. I created a function very similar to your which processes the line, and returns a...
  18. Thread: goodbye

    by kristy
    Replies
    20
    Views
    6,918

    hehe, excellent! :D

    hehe, excellent! :D
  19. Replies
    7
    Views
    2,429

    I love assembly, though I suck at it. :cool: ...

    I love assembly, though I suck at it. :cool: It's certainly a language where you really have to know what you're doing, and how it's interpreted in the computer.
  20. Thread: loop issues

    by kristy
    Replies
    3
    Views
    4,923

    loop issues

    In a function I'm having three loops, that are nested. But something's not working, and it's driving me nuts! Is there a limit for how long a loop can be, or how many loops that can be nested?

    My...
  21. Thread: Newbie

    by kristy
    Replies
    21
    Views
    2,969

    I don't agree. It has its faults, yeah, but no...

    I don't agree. It has its faults, yeah, but no book is pefect, and it's less 'intimidating' than Ritchie's book (wich also has code errors), imo at least. I guess the bottom line is to read more than...
  22. Thread: Newbie

    by kristy
    Replies
    21
    Views
    2,969

    I know you wanted online material, dianazheng,...

    I know you wanted online material, dianazheng, but getting a book is also a good idea. :)
    Practical C Programming are The C Programming Language are good books. Also Deitel's books are concidered...
  23. Replies
    11
    Views
    2,448

    Prelude; In my man page is says: "The atoi()...

    Prelude; In my man page is says: "The atoi() function has been deprecated by strtol() and should not be used in new code."

    But this may not be a standard, though, and perhaps also only written in...
  24. Replies
    11
    Views
    2,448

    Isn't atoi() actually deprecated?

    Isn't atoi() actually deprecated?
  25. Replies
    11
    Views
    2,448

    This program won't compile for me (due to...

    This program won't compile for me (due to conio.h), but remember to include a return status for main. Your code is, unfortunately, not very portable, since *NIX systems needs curses.h for getch().
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4