C# Class System.Net.Sockets.MultipleConnectAsync

Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Protected Properties

Property Type Description
_addressList System.Net.IPAddress[]
_endPoint System.Net.DnsEndPoint
_internalArgs SocketAsyncEventArgs
_nextAddress int
_userArgs SocketAsyncEventArgs

Public Methods

Method Description
Cancel ( ) : void
StartConnectAsync ( SocketAsyncEventArgs args, DnsEndPoint endPoint ) : bool

Protected Methods

Method Description
GetNextAddress ( Socket &attemptSocket ) : IPAddress
OnFail ( bool abortive ) : void
OnSucceed ( ) : void

Private Methods

Method 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 method

public Cancel ( ) : void
return void

GetNextAddress() protected abstract method

protected abstract GetNextAddress ( Socket &attemptSocket ) : IPAddress
attemptSocket Socket
return System.Net.IPAddress

OnFail() protected abstract method

protected abstract OnFail ( bool abortive ) : void
abortive bool
return void

OnSucceed() protected abstract method

protected abstract OnSucceed ( ) : void
return void

StartConnectAsync() public method

public StartConnectAsync ( SocketAsyncEventArgs args, DnsEndPoint endPoint ) : bool
args SocketAsyncEventArgs
endPoint System.Net.DnsEndPoint
return bool

Property Details

_addressList protected_oe property

protected IPAddress[],System.Net _addressList
return System.Net.IPAddress[]

_endPoint protected_oe property

protected DnsEndPoint,System.Net _endPoint
return System.Net.DnsEndPoint

_internalArgs protected_oe property

protected SocketAsyncEventArgs,System.Net.Sockets _internalArgs
return SocketAsyncEventArgs

_nextAddress protected_oe property

protected int _nextAddress
return int

_userArgs protected_oe property

protected SocketAsyncEventArgs,System.Net.Sockets _userArgs
return SocketAsyncEventArgs