## Socket::Close() method


Closes the socket connection.

```cpp
void System::Net::Sockets::Socket::Close()
```

## See Also

* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
## Socket::Close(int) method


Closes the socket connection with the specified timeout to allow queued data to be sent.

```cpp
void System::Net::Sockets::Socket::Close(int timeout)
```


| Parameter | Type | Description |
| --- | --- | --- |
| timeout | int | A number of milliseconds to wait. |

## See Also

* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
