C# Class System.Net.Sockets.MultipleConnectAsync

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Protected Properties

Свойство Type Description
_addressList System.Net.IPAddress[]
_endPoint System.Net.DnsEndPoint
_internalArgs SocketAsyncEventArgs
_nextAddress int
_userArgs SocketAsyncEventArgs

Méthodes publiques

Méthode Description
Cancel ( ) : void
StartConnectAsync ( SocketAsyncEventArgs args, DnsEndPoint endPoint ) : bool

Méthodes protégées

Méthode Description
GetNextAddress ( Socket &attemptSocket ) : IPAddress
OnFail ( bool abortive ) : void
OnSucceed ( ) : void

Private Methods

Méthode Description
AsyncFail ( Exception e ) : void
AttemptConnection ( ) : Exception
AttemptConnection ( Socket attemptSocket, SocketAsyncEventArgs args ) : Exception
AttemptUserConnection ( ) : Exception
CallAsyncFail ( object ignored ) : void
DnsCallback ( IAsyncResult result ) : void
DoDnsCallback ( IAsyncResult result, bool sync ) : bool
Fail ( bool sync, Exception e ) : bool
InternalConnectCallback ( object sender, SocketAsyncEventArgs args ) : void
OnFailOuter ( bool abortive ) : void
Succeed ( ) : void
SyncFail ( Exception e ) : void

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

GetNextAddress() protected abstract méthode

protected abstract GetNextAddress ( Socket &attemptSocket ) : IPAddress
attemptSocket Socket
Résultat System.Net.IPAddress

OnFail() protected abstract méthode

protected abstract OnFail ( bool abortive ) : void
abortive bool
Résultat void

OnSucceed() protected abstract méthode

protected abstract OnSucceed ( ) : void
Résultat void

StartConnectAsync() public méthode

public StartConnectAsync ( SocketAsyncEventArgs args, DnsEndPoint endPoint ) : bool
args SocketAsyncEventArgs
endPoint System.Net.DnsEndPoint
Résultat bool

Property Details

_addressList protected_oe property

protected IPAddress[],System.Net _addressList
Résultat System.Net.IPAddress[]

_endPoint protected_oe property

protected DnsEndPoint,System.Net _endPoint
Résultat System.Net.DnsEndPoint

_internalArgs protected_oe property

protected SocketAsyncEventArgs,System.Net.Sockets _internalArgs
Résultat SocketAsyncEventArgs

_nextAddress protected_oe property

protected int _nextAddress
Résultat int

_userArgs protected_oe property

protected SocketAsyncEventArgs,System.Net.Sockets _userArgs
Résultat SocketAsyncEventArgs