Search:

Type: Posts; User: jsx-27

Search: Search took 0.00 seconds.

  1. Thread: Child processes

    by jsx-27
    Replies
    3
    Views
    2,260

    Thanks!

    Thanks!
  2. Thread: Child processes

    by jsx-27
    Replies
    3
    Views
    2,260

    Child processes

    New question for you guys out there. If I was to use execvp to launch a child process could I monitor and change its variable using the parent program? Better yet, can I capture stdout from that...
  3. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    I was trying to do it that way, but I think the...

    I was trying to do it that way, but I think the mistake I made was putting the '&' before the variable.

    Thanks.
  4. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    I worked it out. What I did was stored the bytes...

    I worked it out. What I did was stored the bytes received in a char pointer, and did the following changes to this function.



    bool RECV_MSG ( SOCKET_DATA* PIPE, char *message, char *RECVD_BYTES...
  5. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    The tricky part now is to count how many chars...

    The tricky part now is to count how many chars are stored in message with all those terminating characters. Since I know my buffer has been limited to just 1000, then i made sure to send out 1000....
  6. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    If you look up top I do mention null... its very...

    If you look up top I do mention null... its very funny because most chars* are ended with a '\0'. If I use fwrite instead of printf, then I get a much different view of whats going on, (fwrite...
  7. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    So that log I showed you terminated...

    So that log I showed you terminated automatically, so then i set the option SO_NOSIGPIPE. That fixed that issue, but I'm still running into problems.
  8. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    bool RECV_MSG ( SOCKET_DATA* PIPE, char *message,...

    bool RECV_MSG ( SOCKET_DATA* PIPE, char *message, int BUF ) {

    ssize_t status;

    status = recv ( PIPE->m_sock, message, BUF, 0 );

    if ( status < 0 ) {
    printf...
  9. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    Would there be any difference using poll(),...

    Would there be any difference using poll(), because I've switched to that. Also, I've tried that looping method, and it turns out that I end up getting receiving errors. Then it has to go back to...
  10. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    Actually, just reading up on things, it turns out...

    Actually, just reading up on things, it turns out I should probably use "unsigned char*" instead of "char*"? That or using wchar_t* but im lost as far as that goes.
  11. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    Ok, lets just discard "DATA" it has no official...

    Ok, lets just discard "DATA" it has no official use in the program as of yet. The recv() message function, I print off all data that has been recieved and it shows up the same as the string. This has...
  12. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    I think part of the problem is that the gzip...

    I think part of the problem is that the gzip compressed data contains NULL characters. Would NULL chars create a problem in a char* or string?
  13. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    // More stuff behind here to fetch browser...

    // More stuff behind here to fetch browser response which should only be a header.



    while ( true )
    {
    MSG = "";

    if ( DEBUG1 ) {
    ...
  14. Thread: Proxy

    by jsx-27
    Replies
    17
    Views
    2,334

    Proxy

    I have a program that creates two sockets. One for the browser and the other connecting to the server, given in the header. As long as I modify the header option "Content-Encoded: " from...
Results 1 to 14 of 15