Changes between and of Initial VersionVersion 1Ticket #5570


Ignore:
Timestamp:
05/28/2012 12:05:13 PM (2 years ago)
Author:
therve
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5570 – Description

    initial v1  
    11Certain multi-process models want to be able to move established connections (TCP, UNIX, whatever) between processes.  There aren't any public APIs for this now, so we should add one. 
    22 
    3 #5248 added `IReactorSocket.listenSocket`.  We should also add `IReactorSocket.addConnection`.  It would have a similar signature to `listenSocket` (but likely without the `socketType` argument, since it would always have to be `SOCK_STREAM`) , but treat the file descriptor as a `SOCK_STREAM` socket which is already connected to a peer.  The reactor would do whatever necessary to start processing events from that socket, just as it would do for a socket it accepted internally from a port it was managing. 
     3#5248 added `IReactorSocket.adoptStreamPort`.  We should also add `IReactorSocket.addConnection`.  It would have a similar signature to `listenSocket` (but likely without the `socketType` argument, since it would always have to be `SOCK_STREAM`) , but treat the file descriptor as a `SOCK_STREAM` socket which is already connected to a peer.  The reactor would do whatever necessary to start processing events from that socket, just as it would do for a socket it accepted internally from a port it was managing. 
    44 
    55See also #4387.