Search:

Type: Posts; User: newbc

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. of course not, I just have not found any examples...

    of course not, I just have not found any examples that might help me out, so I can understand what I am doing better. I just don't know what functions to use in the name server that will direct the...
  2. Well this is just a HW assignment, nothing big....

    Well this is just a HW assignment, nothing big. It was on the c board because I will write it in c and execute it in a unix shell. From my understanding I just need two servers 1 and 2. I just need...
  3. 13199 this is how I see it. So I will need 3...

    13199

    this is how I see it. So I will need 3 servers?
  4. Well I am using sockets in c\unix. • Name...

    Well I am using sockets in c\unix.

    • Name Server (NS) to keep track of availability of all the Math Servers
    • One TCP connection between each client and the Math Server (MS). Assume there are...
  5. question about having a back up server using Sockets

    Ok I already have a simple tcp between one client and a server. Now what I need to do is have the same tcp client program, but now on the server program I need to implement code where if server serve...
  6. yes it did thank you. One questions what is this...

    yes it did thank you. One questions what is this line doing? copying the values to you char*?



    sprintf(serialized, "%d,%d,%d",clientpacket.header,clientpacket.message, clientpacket.flag);


    ...
  7. well like I said my idea was to copy the struct...

    well like I said my idea was to copy the struct to a char buffer, like the using the code above for sendto(). what easy was do you suggest? that was my easy way...
  8. okay so I am trying this code. It is suppose to...

    okay so I am trying this code. It is suppose to copy the data from my structure to a char array but why can't I get the same values for the last long long int position [7]?



    struct packet
    {...
  9. okay follow up on my question. So I am on the...

    okay follow up on my question. So I am on the server side and I am trying to convert the char pbuffer to host byte order


    pbuffer[20] = ntohl(pbuffer[20]);


    if (sendto(sockfd, pbuffer,...
  10. Salem thanks for the help. so I will need to copy...

    Salem thanks for the help. so I will need to copy each structure element at a time, not the whole structure using memcpy().
  11. Question about sending a "packet" over sockets

    Hi I have a socket connection already set up, my thing is what would be the best way to send a packet through sockets? My teacher wants us to convert the packet to bits first before we send it.

    I...
  12. Replies
    5
    Views
    2,147

    well I tried to modify my first program to read a...

    well I tried to modify my first program to read a line but this is what I have. We just started reading about datafiles.



    0001 #include <iostream>
    0002 #include <string>
    0003 #include...
  13. Replies
    5
    Views
    2,147

    well I would like my first code the do the same...

    well I would like my first code the do the same as the second code post, that is read lines of words not just words separated by spaces.
  14. Replies
    5
    Views
    2,147

    help reading words from a datafile

    so what im trying to do is read one line words at the time and seperate the words too.

    so I read line 1:
    add cars

    line 2:
    subtract cars
    my progarm should know they are in the same line and...
  15. need help printing some values from a queue class.

    ok here is my queue function that prints all the values



    void Queue::displayAll()
    {
    if (isEmpty()) cout << "Empty ";
    QueueNode *temp = frontPtr;

    while (temp!= NULL)
  16. let me just ask you the last set of questions...

    let me just ask you the last set of questions after this I promise I won't ask you anymore.

    you said "build the list in sorted order. " what do you mean by already being sorted, and are you...
  17. im just lost and out of ideas my plan for this...

    im just lost and out of ideas my plan for this was create an array with empty strings (""). and start adding the words in the end of the array that is why I did
    if(index+1>wordsToprocess &&...
  18. can someboy tell me why my while loop will not...

    can someboy tell me why my while loop will not exucte in the red text.



    //test sample code
    //


    #include <iostream>
    #include <cstdlib>
  19. about question one. yes I will add them to a...

    about question one. yes I will add them to a queue latter on.

    Question #2) since
    string word26[]={"a","f","j","z"}; has been declared like this can I really add more strings to it. What do you...
  20. Need help organizing an array of string, it has to be my teachers way.

    Well here is our assignment.



    rite a C++ program that will build a Word Concordance for a series of text lines. A Concordance is basically an index of
    words in a document, and a listing of...
  21. How will this function help sort a struct array of characters?

    Well out teacher told us to modify, this function to sort string names inside an array structure.
    Here is what he posted in the assigment.

    "The words are to be stored in a statically-declared...
  22. String Question: Why do we subtract a one to access the last character?

    I know in C the last character was the null character, but I'm confused what this means?



    if ( sz[ strlen( sz ) - 1 ] == '\\' ) // Is last character a '\'?
    // . . .


    so why do we...
  23. Help using cout to format how my statement is suppose to print

    Ok first of all, my statement needs to print like this.



    Second 0:
    Running: No Jobs
    Queue 0: Empty
  24. What do you mean by "Loop over the items and...

    What do you mean by "Loop over the items and destroy them."
  25. ok I think I figured out how to print item on the...

    ok I think I figured out how to print item on the bottom;

    Any help on how to create the descructor?
    we just converted to c++ like two weeks ago.
Results 1 to 25 of 68
Page 1 of 3 1 2 3