System::Net::Sockets::Socket::BeginConnect metodo
Contenuti
[
Nascondere
]Socket::BeginConnect(String, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Avvia un’operazione di connessione asincrona.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| Parametro | Tipo | Descrizione |
|---|---|---|
| host | String | Il nome dell’host remoto. |
| porta | int32_t | Il numero di porta dell’host remoto. |
| requestCallback | AsyncCallback | Un callback che verrà chiamato quando l’operazione è completata. |
| state | System::SharedPtr<Object> | Dati forniti dall’utente utilizzati per identificare in modo univoco ogni operazione di connessione asincrona. |
ReturnValue
Un oggetto IAsyncResult che rappresenta l’operazione di connessione asincrona avviata.
Vedi anche
- Typedef SharedPtr
- Class IAsyncResult
- Class String
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Page for C++
Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Avvia un’operazione di connessione asincrona.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| Parametro | Tipo | Descrizione |
|---|---|---|
| addresses | System::ArrayPtr<System::SharedPtr<IPAddress>> | Gli indirizzi IP dell’host remoto. |
| porta | int32_t | Il numero di porta dell’host remoto. |
| requestCallback | AsyncCallback | Un callback che verrà chiamato quando l’operazione è completata. |
| state | System::SharedPtr<Object> | Dati forniti dall’utente utilizzati per identificare in modo univoco ogni operazione di connessione asincrona. |
ReturnValue
Un oggetto IAsyncResult che rappresenta l’operazione di connessione asincrona avviata.
Vedi anche
- Typedef SharedPtr
- Class IAsyncResult
- Typedef ArrayPtr
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Page for C++
Socket::BeginConnect(System::SharedPtr<EndPoint>, AsyncCallback, System::SharedPtr<Object>) method
Avvia un’operazione di connessione asincrona.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<EndPoint> remoteEP, AsyncCallback callback, System::SharedPtr<Object> state)
| Parametro | Tipo | Descrizione |
|---|---|---|
| remoteEP | System::SharedPtr<EndPoint> | Il punto finale remoto. |
| callback | AsyncCallback | Un callback che verrà chiamato quando l’operazione è completata. |
| state | System::SharedPtr<Object> | Dati forniti dall’utente utilizzati per identificare in modo univoco ogni operazione di connessione asincrona. |
ReturnValue
Un oggetto IAsyncResult che rappresenta l’operazione di connessione asincrona avviata.
Vedi anche
- Typedef SharedPtr
- Class IAsyncResult
- Class EndPoint
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Page for C++
Socket::BeginConnect(System::SharedPtr<IPAddress>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Avvia un’operazione di connessione asincrona.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<IPAddress> address, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| Parametro | Tipo | Descrizione |
|---|---|---|
| indirizzo | System::SharedPtr<IPAddress> | L’indirizzo IP dell’host remoto. |
| porta | int32_t | Il numero di porta dell’host remoto. |
| requestCallback | AsyncCallback | Un callback che verrà chiamato quando l’operazione è completata. |
| state | System::SharedPtr<Object> | Dati forniti dall’utente utilizzati per identificare in modo univoco ogni operazione di connessione asincrona. |
ReturnValue
Un oggetto IAsyncResult che rappresenta l’operazione di connessione asincrona avviata.
Vedi anche
- Typedef SharedPtr
- Class IAsyncResult
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Page for C++