Search:

Type: Posts; User: BENCHMARKMAN

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    928

    Anybody

    Anybody
  2. Replies
    2
    Views
    928

    Set up Borland with new Library

    I am trying to setup the borland command line compiler to use additional library files that I have in a different path. How do I configure the compiler to look for these libraries?
  3. Thread: Csim

    by BENCHMARKMAN
    Replies
    0
    Views
    1,481

    Csim

    Does anybody have experience using CSIM to simulate network router systems?
  4. Replies
    3
    Views
    1,387

    rpc.h

    rpc.h
  5. Replies
    3
    Views
    1,387

    Trying to Compile RPC Client

    I am tring, for the first time, to compile an rpc client but I am getting a vague compile error. The rpc.x code compiles fine, the client.c code compiles, and the rpc_clnt.c compiles but when I run...
  6. Replies
    2
    Views
    4,037

    Send and Int Through Socket?

    Is it possible to send an int throug a udp or tcp socket program without casting it? I have an assignment and the requirments state "It is not acceptable to translate integers into a string for...
  7. Replies
    15
    Views
    4,600

    Ok but If the client is sending a struct that has...

    Ok but If the client is sending a struct that has been cast to a const char how should the server read the message and be able to access the struct members? This is what I'm confused on.
  8. Replies
    15
    Views
    4,600

    If sorry I didn't fully understand your comment. ...

    If sorry I didn't fully understand your comment. I understand I don't need to read as a cosnt char* but are you also saying I don't need to cast the struct bacK? How exactly would I go about...
  9. Replies
    19
    Views
    109,272

    I'm not going to argue with you dude, it was more...

    I'm not going to argue with you dude, it was more syntactical than logic. Again thanks for the help
  10. Replies
    19
    Views
    109,272

    What are you talking about? I'm thanking you for...

    What are you talking about? I'm thanking you for helping me and then you come back at me like that. Whats up dude? It wasn't working but the logic was correct, I didn't know scanf would stop at a...
  11. Replies
    19
    Views
    109,272

    I think you found my problem, I was using scanf. ...

    I think you found my problem, I was using scanf. Thanks you are the man! Thanks for the isspace function suggestion too.

    For the rest of you again this would have worked PERFECTLY had I used...
  12. Replies
    15
    Views
    4,600

    Nope. I just commented out my line and right...

    Nope. I just commented out my line and right below the comment tried reading a string and got no error messages. Soon as I change the line back to the struct it errors out. Do I need to read it in...
  13. Replies
    19
    Views
    109,272

    I'm not being arrogant, its a requirment and I...

    I'm not being arrogant, its a requirment and I fully understand the reasons. If you don't want to help me out just because I can't and won't code it your way then fine. Again no matter how I write...
  14. Replies
    19
    Views
    109,272

    I have my reasons that it needs to be done this...

    I have my reasons that it needs to be done this way. Can we get back to the orignial problem of why ' ' will not pick up as a blank in a while loop? Any way that I try to code this I will have to...
  15. Replies
    15
    Views
    4,600

    Ok so I was able to cast it as a char but how do...

    Ok so I was able to cast it as a char but how do I get the server to accept the struct. Server code is
    = read(sockfd,(const char*)&p,sizeof(p)); but I get an error on the server after starting up...
  16. Replies
    19
    Views
    109,272

    I guess I should re-explain. I am trying to...

    I guess I should re-explain. I am trying to parse out a simple math expressions such as 3+5. So I have 3 while loops skipping out blank spaces. So I have a while to skip blank in the case of "...
  17. Replies
    19
    Views
    109,272

    Check for blank spaces in a string

    In c++ I know you could check for black space by


    if(string[i]==' ')

    In c this is not working for me. Does c represent a blank space differently?

    My code looks like this but the blank...
  18. Replies
    15
    Views
    4,600

    I guess I'm confused because my sample code I...

    I guess I'm confused because my sample code I posted above does not work. I need to send 2 ints and a string in 1 packet. How would I do this? i thought about using a struct but that did not...
  19. Replies
    15
    Views
    4,600

    So you are saying I could use both methods? ...

    So you are saying I could use both methods?



    Thanks, I'll keep that in mind.
  20. Replies
    15
    Views
    4,600

    Socket Question

    I am writing a c tcp client socket program. If I want to send the server a string and 2 ints can I send that in one write function or do I have to use the write function 3 times, once for each...
  21. But lets say you are right that there is a race...

    But lets say you are right that there is a race condition how is that going to stop a thread from waking? If the thread goes to sleep he should wake up. I underestand the concept that a race...
  22. You really think I would have a race condition...

    You really think I would have a race condition when it when it runs 0/20 times and now I have successfully run it 20/20 times. I think it was a server load issue. I'm going to continue testing...
  23. Question. Could it have anything to do with the...

    Question. Could it have anything to do with the server I am running it on. I am ssh into a university mainframe. If the load was extremely high that could cause the "strange" anomolies I have...
  24. Yes, the arrive/depart do the locking but if the...

    Yes, the arrive/depart do the locking but if the thread goes to sleep shouldn't it wake up? Its not waking up. There are no locks between the printf("Person %d sleeping\n", id); and printf("Person...
  25. I am using mutex locks and ocndition variables. ...

    I am using mutex locks and ocndition variables. I am 100% sure that it is not deadlocking because of a thread holding a lock. I have debug output and its like ALL threads have died.

    In the...
Results 1 to 25 of 48
Page 1 of 2 1 2