CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: me_newbie

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    631

    Handling Multiple Connections

    Hi Guys !

    can you explain the following code because i want to handle multiple connection and want to implement in my project



    int newsockfd, pid;
    socklen_t clilen; ...
  2. Replies
    10
    Views
    1,122

    Re: Server leaves the connections open

    Thanks your help was fruitful but i need to know why we add this line what does it mean?


    else if(pid == -1010)
    {
    close(m_sockfd);
    p_Game = new Game();
    ...
  3. Replies
    5
    Views
    3,110

    Re: Breaking input string into tokens

    Hi Philip Nicoletti and Peter Thanks for your help, it was fruitful and i wouldn't make it without your help

    and here is my solution which i got and it is working perfectly. and posting here if...
  4. Replies
    5
    Views
    3,110

    Breaking input string into tokens

    Hi Guys !

    I'm get input from the user and then storing it in "s " and then trying make tokens, but it is not working, and after making tokens i'm counting them.

    Here is My Code


    #include...
  5. Replies
    4
    Views
    3,971

    Re: Reading file into array

    Thank Philip Nicoletti your help was very fruitful, i modified it for my purpose

    thumb up to you

    Regards,

    Ewa
  6. Replies
    4
    Views
    3,971

    Re: Reading file into array

    Thanks for reply, i modified your code to suit my purpose and now i want to access a specific column in a specific row. how to do it? because i want to read and analyze the 3rd column values.

    ...
  7. Replies
    4
    Views
    3,971

    Reading file into array

    Hi Guys!

    i'm reading a file which has 20 rows and random number of columns, i want to put them in array/vector which i did but the problem is that array is filling a cell with a garbage value at...
  8. Replies
    10
    Views
    1,122

    Re: Server leaves the connections open

    Hi.. i stop the clients first and then stop the server. and when i try to run server again after terminating it doesn't run immediately.

    i don't know what step i'm missing, the rest it is working...
  9. Replies
    10
    Views
    1,122

    Re: Server leaves the connections open

    Hi ! thanks for reply but how shall i use it? from the main class, where exactly, it will help if you explain in detail

    Regards,
  10. Replies
    10
    Views
    1,122

    Server leaves the connections open

    Hello everyone !

    I have program and there is something wrong with it, i can't run my server immediately after closing it, it leaves some connection(zombies) leave open after the server is...
  11. Replies
    2
    Views
    662

    Analyzing buffer text

    Hi Guys !

    i'm trying to analyze buffer text, but unfortunately i'm not able to do so, don't know where is the problem. it will be very kind of you guys if you go through my code and identify the...
  12. Replies
    4
    Views
    1,332

    Re: complie .h file

    Hi

    here is the solution



    COMPILER = g++
    SOURCES = main.cpp
    HEADERS = whatever.h whatever1.h
    APP = executable/main
  13. Replies
    4
    Views
    1,332

    complie .h file

    how can i include a re-compilation/update for my own ".h" files within my makefile.

    This is my makefile:



    COMPILER = g++
    SOURCES = main.cpp
    APP = executable/main
  14. Replies
    2
    Views
    788

    Server Client communication

    Hi every one!

    i want to know how many files should i have for server and client communication.

    i'm just putting a method on server and it will be invoked by client
    and method having message...
  15. Replies
    6
    Views
    699

    Re: Reading the Rest of line

    Thanks to All of you for guiding me through, i finally solved it with your help



    string str, description;
    int value;

    while(infile>>str){
    //cout<<str<<endl;
    ...
  16. Replies
    6
    Views
    699

    Re: Reading the Rest of line

    string str, description;
    int value;

    while(infile>>str){
    cout<<str<<endl;
    getline(infile,description);
    ...
  17. Replies
    6
    Views
    699

    Re: Reading the Rest of line

    Here is my code



    string str, description;
    int value;

    while(infile>>str){
    cout<<str<<endl;
    getline(infile,restofline);
  18. Replies
    6
    Views
    699

    Reading the Rest of line

    Hi Guys !

    I had a problem which i fixed it but couldn't fix it in a nice way

    lets understand my problem first, i have a file and has data in the following format

    Id(int) and ...
  19. Thread: reading line

    by me_newbie
    Replies
    2
    Views
    738

    reading line

    Hi Guys!

    how to get the text from file before any space come

    suppose i have file and it reads




    aa this is a
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured