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

Search:

Type: Posts; User: verbal

Page 1 of 2 1 2

Search: Search took 0.33 seconds.

  1. Elegant shutdown of server when signal is received

    Hi all,
    I have built a TCP server which i need to shutdown nicely when some signals are received. My problem is this:
    As a first approach i though of setting a global variable which would then...
  2. erasing printed characters (linux terminal)

    Hello,
    I am writing a program in which i want to emulate the capability of the terminal to erase characters after they are printed.
    For example:
    When i press the up arrow in the terminal the last...
  3. Replies
    4
    Views
    5,108

    Re: pointer to template problem

    These are all the definitions for the list template, the first class is the list node and the second class is the header of the list:



    template <class contain> class ListNode {
    private:
    ...
  4. Replies
    4
    Views
    5,108

    pointer to template problem

    Hi,
    I wrote a template for a double linked list and i try to dynamically allocate an array where each element is a list from that template, but when i try to insert an element i get a compilation...
  5. Replies
    1
    Views
    1,076

    linux process communication using signals

    Hello,
    I am building a Linux application that forks() some children to do some work and the communicates with them using signals. I have some questions regarding signal processing:
    1) About half...
  6. Replies
    14
    Views
    1,114

    Re: template problem

    Thank you for the help, it works fine now.
    But i am a little confused. So when ever i have a member function of a template class i need to provide the source code for the functions in the header...
  7. Replies
    14
    Views
    1,114

    Re: template problem

    Ok, sorry for that, i misunderstood...
    The error is appearing to nearly all the functions of the template that are used by the program so here's an example.




    class person {
    private:
    int...
  8. Replies
    14
    Views
    1,114

    Re: template problem

    First time using templates , so excuse my ignorance...
    If i get it, the problem is that here:


    ListHead<contain>::ListHead


    i must specify exactly the type i want to use instead of...
  9. Replies
    14
    Views
    1,114

    Re: template problem

    sorry for that, i had these functions in a seperated folder. Here is the prototypes for them:




    template <class contain> LinkedList<contain>::LinkedList(contain & element)
    {
    ...
    }
    template...
  10. Replies
    14
    Views
    1,114

    template problem

    Hello,
    I am building a project where i made a list using templates but when i try to compile the program i get the following error in linking

    ...
  11. Replies
    2
    Views
    1,129

    Re: waiting for an event

    yes , you are right. I just had a look at them and they seem the correct solution. I had programed only once before with the pthread's library so i wasn't aware of them.
    Thanks for the quick...
  12. Replies
    2
    Views
    1,129

    waiting for an event

    Hello,
    I am writing a c++ application that simulates a game for two or more players. What i want to do is to wait while the players are less than two, and when they reach that number to start...
  13. Replies
    1
    Views
    942

    Re: linux system call problem

    OK, thats resolved,
    0x66 invokes the socketcall system call which calls any of the sockets calls needed, so thats why the arguments are pushed on to the stack etc etc.
  14. Replies
    1
    Views
    942

    linux system call problem

    Hello,
    I am writing a little network program in assembly and i have the following problem.
    I am using linux x86 and i want to call the socket system call which number i found to be 102 (or 0x66)....
  15. Replies
    2
    Views
    841

    signal handling and function pointers.

    I want to handle the interrupt signal, and when i do that, the function called to be dependent on whats the program's condition is. I mean that i want to print the result for the operation running...
  16. Replies
    4
    Views
    851

    Re: POST request problem

    I didn't knew about these programs. Thank you for the hint.
    I haven't figured out yet what's wrong but i'll post any results i might find.
  17. Replies
    4
    Views
    851

    Re: POST request problem

    I added the cookies requested by the server but the problem remains... I would say that its the parts missing from my HTTP header but the program works fine when there are only GET requests.
    Here...
  18. Replies
    4
    Views
    851

    POST request problem

    I think that this is a question regarding mostly HTTP protocol, but i cant find out whats wrong in the RFC, so i would appreciate any suggestions.

    I have a program that make requests on web...
  19. Replies
    2
    Views
    688

    Re: Sending an int using sockets

    ok , probably whoever posted this code got confused with html or something...
    The &amp; logically represents the '&' sign for the address of n and the &lt is the '<' sign.

    so basically you have your...
  20. Thread: url stability

    by verbal
    Replies
    1
    Views
    722

    url stability

    i saw in a program that it was checking the url's stability by requesting the same page multiple times with a delay between the requests and then compare the pages returned to see if they matched.
    I...
  21. Replies
    6
    Views
    903

    Re: select between streams

    Thank you all for the responses, they were really helpful.
    Basically printing to stdout and then redirecting to a file has the disadvantage that the output is printed exactly as it is on the...
  22. Replies
    6
    Views
    903

    select between streams

    Hello,
    I am writing a program where the user have the option to select where the output will be written, on cout or a file that he chooses.
    Is there a practical way to do that besides on putting if...
  23. Thread: timeout on recv

    by verbal
    Replies
    3
    Views
    1,037

    Re: timeout on recv

    i made the timeout as a configuration option and let it up to the user (along with some warnings on the documentation and the default value on 5s).
    After some tests i ran at random servers i found...
  24. Thread: timeout on recv

    by verbal
    Replies
    3
    Views
    1,037

    timeout on recv

    i make a project where i need to download web pages.
    my problem was how would i recv the hole web page. the content length part of the HTTP header isn't always set so it's not a trusted source. if i...
  25. Replies
    1
    Views
    790

    string casting & c++ network programming

    There are 2 questions i have:
    1) is there a function to cast a char * string to a c++ string in unix enviroment?
    in the opposite way i can just call c_str() but i cant find something for this case....
Results 1 to 25 of 36
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured