C# Class IronRuby.StandardLibrary.Sockets.RubyBasicSocket

Inheritance: IronRuby.Builtins.RubyIO
Mostrar archivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
CreateErrorWaitHandle ( ) : WaitHandle
CreateReadWaitHandle ( ) : WaitHandle
CreateWriteWaitHandle ( ) : WaitHandle
FileControl ( int commandId, byte arg ) : int
FileControl ( int commandId, int arg ) : int
NonBlockingOperation ( System.Action operation, bool isRead ) : void
SetReadTimeout ( int timeout ) : int

Protected Methods

Method Description
RubyBasicSocket ( RubyContext context ) : System

Creates an uninitialized socket.

RubyBasicSocket ( RubyContext context, Socket socket ) : System

Create a new RubyBasicSocket from a specified stream and mode

Private Methods

Method Description
AddressFamilyToString ( AddressFamily af ) : string
CheckSecurity ( RubyContext context, object self, string message ) : void
CloseRead ( RubyContext context, RubyBasicSocket self ) : void
CloseWrite ( RubyContext context, RubyBasicSocket self ) : void
ConvertToAddressFamily ( ConversionStorage stringCast, ConversionStorage fixnumCast, object family ) : AddressFamily
ConvertToHostString ( BigInteger address ) : string
ConvertToHostString ( ConversionStorage stringCast, object hostName ) : string
ConvertToHostString ( MutableString hostName ) : string
ConvertToHostString ( uint address ) : string
ConvertToPortNum ( ConversionStorage stringCast, ConversionStorage fixnumCast, object port ) : int
ConvertToSocketFlag ( ConversionStorage conversionStorage, object flags ) : SocketFlags
CreateHostEntryArray ( RubyContext context, IPHostEntry hostEntry, bool packIpAddresses ) : RubyArray
DoNotReverseLookup ( RubyContext context ) : StrongBox
ForFileDescriptor ( ) : RuleGenerator
GetAddressArray ( EndPoint endPoint ) : RubyArray
GetAddressArray ( RubyContext context, EndPoint endPoint ) : RubyArray
GetAddressArray ( RubyContext context, EndPoint endPoint, bool doNotReverseLookup ) : RubyArray
GetDoNotReverseLookup ( RubyBasicSocket self ) : bool
GetDoNotReverseLookup ( RubyClass self ) : bool
GetHostAddress ( string hostNameOrAddress ) : IPAddress
GetHostByName ( RubyContext context, string hostNameOrAddress, bool packIpAddresses ) : RubyArray
GetHostEntry ( IPAddress address, bool doNotReverseLookup ) : IPHostEntry
GetHostEntry ( string hostNameOrAddress, bool doNotReverseLookup ) : IPHostEntry
GetPeerName ( RubyBasicSocket self ) : MutableString
GetSocketName ( RubyBasicSocket self ) : MutableString
GetSocketOption ( ConversionStorage conversionStorage, RubyContext context, RubyBasicSocket self, [ level, [ optname ) : MutableString
HostNameToMutableString ( RubyContext context, string str ) : MutableString
IPAddressToHostName ( IPAddress address, bool doNotReverseLookup ) : string
IntegerAsFixnum ( object value, int &result ) : bool

Converts an Integer to a Fixnum. Don't call any conversion methods--just handles Fixnum & Bignum

MakeEntry ( IPAddress address, bool doNotReverseLookup ) : IPHostEntry
Receive ( ConversionStorage fixnumCast, RubyBasicSocket self, [ length, [ flags ) : MutableString
ReceiveNonBlocking ( ConversionStorage fixnumCast, RubyBasicSocket self, [ length, [ flags ) : MutableString
SearchForService ( MutableString serviceName ) : ServiceName
SearchForService ( MutableString serviceName, MutableString protocol ) : ServiceName
SearchForService ( int port ) : ServiceName
Send ( ConversionStorage fixnumCast, RubyBasicSocket self, [ message, object flags ) : int
Send ( ConversionStorage fixnumCast, RubyBasicSocket self, [ message, object flags, [ to ) : int
SetDoNotReverseLookup ( RubyBasicSocket self, bool value ) : void
SetDoNotReverseLookup ( RubyClass self, bool value ) : void
SetFileControlFlags ( int flags ) : int
SetSocketOption ( ConversionStorage conversionStorage, RubyContext context, RubyBasicSocket self, [ level, [ optname, bool value ) : void
SetSocketOption ( ConversionStorage conversionStorage, RubyContext context, RubyBasicSocket self, [ level, [ optname, int value ) : void
SetSocketOption ( RubyContext context, RubyBasicSocket self, [ level, [ optname, [ value ) : void
Shutdown ( RubyContext context, RubyBasicSocket self, [ how ) : int
ToAddressFamilyString ( AddressFamily family ) : MutableString

Method Details

CreateErrorWaitHandle() public method

public CreateErrorWaitHandle ( ) : WaitHandle
return System.Threading.WaitHandle

CreateReadWaitHandle() public method

public CreateReadWaitHandle ( ) : WaitHandle
return System.Threading.WaitHandle

CreateWriteWaitHandle() public method

public CreateWriteWaitHandle ( ) : WaitHandle
return System.Threading.WaitHandle

FileControl() public method

public FileControl ( int commandId, byte arg ) : int
commandId int
arg byte
return int

FileControl() public method

public FileControl ( int commandId, int arg ) : int
commandId int
arg int
return int

NonBlockingOperation() public method

public NonBlockingOperation ( System.Action operation, bool isRead ) : void
operation System.Action
isRead bool
return void

RubyBasicSocket() protected method

Creates an uninitialized socket.
protected RubyBasicSocket ( RubyContext context ) : System
context RubyContext
return System

RubyBasicSocket() protected method

Create a new RubyBasicSocket from a specified stream and mode
protected RubyBasicSocket ( RubyContext context, Socket socket ) : System
context RubyContext
socket Socket
return System

SetReadTimeout() public method

public SetReadTimeout ( int timeout ) : int
timeout int
return int