home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 12,926 of 14,669   
   Jorgen Grahn to dbtouch   
   Re: dup a connected socket   
   12 Jun 09 14:19:05   
   
   24ea9c74   
   From: grahn+nntp@snipabacken.se   
      
   On Fri, 12 Jun 2009 06:13:09 -0700 (PDT), dbtouch  wrote:   
   > Dear fellow programmers,   
   >   
   > I am working a system in which a monitor server log the message   
   > exchange between client and server. I am thinking to use dup to   
   > duplicate the connected socket and pass the duplicate fd to the   
   > monitor server. I assume that any message sent to the original socket,   
   > the duplicate socket will also receive it. Before I do a test, I want   
   > to hear your opinion.   
      
   Think of it in terms of duplicate fds which refer to the same socket,   
   rather than duplicate sockets. There is only one TCP state, only one   
   set of TX/RX buffers and so on. (Same as with disk files.)   
      
   So I think what you want cannot work.  If you have control over the   
   server, why do you need to snoop it, anyway?  (Short of debugging it   
   using tcpdump, that is).   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn           R'lyeh wgah'nagl fhtagn!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca