new Socket(socket)
Qt compliant Socket overload. 'data' event is triggered only when full buffer is received. 'error', 'close' and 'end' event are not altered.
Parameters:
| Name | Type | Description |
|---|---|---|
socket |
net.Socket |
- Source:
Methods
updateSocket(socket)
Update the socket (for example to promote it to SSL stream)
Parameters:
| Name | Type | Description |
|---|---|---|
socket |
Stream | object implementing Stream interface |
- Source:
write(data)
Write data to the socket
Parameters:
| Name | Type | Description |
|---|---|---|
data |
* | Data that will be written using Writer |
- Source: