C# Class IronPython.Modules.PythonSelect

Mostrar archivo Open project: jschementi/iron

Public Methods

Method Description
__cctor ( ) : void

Private Methods

Method Description
MakeException ( CodeContext context, object value ) : Exception
ObjectToSocket ( CodeContext context, object obj ) : Socket

Return the System.Net.Sockets.Socket object that corresponds to the passed-in object. obj can be a System.Net.Sockets.Socket, a PythonSocket.SocketObj, a long integer (representing a socket handle), or a Python object with a fileno() method (whose result is used to look up an existing PythonSocket.SocketObj, which is in turn converted to a Socket.

PerformModuleReload ( IronPython.Runtime.PythonContext context, PythonDictionary dict ) : void
ProcessSocketSequence ( CodeContext context, object sequence, List &socketList, object>.Dictionary &socketToOriginal ) : void

Process a sequence of objects that are compatible with ObjectToSocket(). Return two things as out params: an in-order List of sockets that correspond to the original objects in the passed-in sequence, and a mapping of these socket objects to their original objects. The socketToOriginal mapping is generated because the CPython select module supports passing to select either file descriptor numbers or an object with a fileno() method. We try to be faithful to what was originally requested when we return.

SocketExceptionToTuple ( SocketException e ) : PythonTuple
select ( CodeContext context, object iwtd, object owtd, object ewtd, [ timeout ) : PythonTuple

Method Details

__cctor() public static method

public static __cctor ( ) : void
return void