C# Class IronRuby.StandardLibrary.Sockets.RubyBasicSocket

Inheritance: IronRuby.Builtins.RubyIO
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public CreateErrorWaitHandle ( ) : WaitHandle
Résultat System.Threading.WaitHandle

CreateReadWaitHandle() public méthode

public CreateReadWaitHandle ( ) : WaitHandle
Résultat System.Threading.WaitHandle

CreateWriteWaitHandle() public méthode

public CreateWriteWaitHandle ( ) : WaitHandle
Résultat System.Threading.WaitHandle

FileControl() public méthode

public FileControl ( int commandId, byte arg ) : int
commandId int
arg byte
Résultat int

FileControl() public méthode

public FileControl ( int commandId, int arg ) : int
commandId int
arg int
Résultat int

NonBlockingOperation() public méthode

public NonBlockingOperation ( System.Action operation, bool isRead ) : void
operation System.Action
isRead bool
Résultat void

RubyBasicSocket() protected méthode

Creates an uninitialized socket.
protected RubyBasicSocket ( RubyContext context ) : System
context RubyContext
Résultat System

RubyBasicSocket() protected méthode

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

SetReadTimeout() public méthode

public SetReadTimeout ( int timeout ) : int
timeout int
Résultat int