StreamPeerSocket
继承: StreamPeer < RefCounted < Object
派生: StreamPeerTCP, StreamPeerUDS
Abstract base class for interacting with socket streams.
描述
StreamPeerSocket is an abstract base class that defines common behavior for socket-based streams.
方法
void |
|
get_status() const |
|
poll() |
枚举
enum Status: 🔗
Status STATUS_NONE = 0
The initial status of the StreamPeerSocket. This is also the status after disconnecting.
Status STATUS_CONNECTING = 1
A status representing a StreamPeerSocket that is connecting to a host.
Status STATUS_CONNECTED = 2
A status representing a StreamPeerSocket that is connected to a host.
Status STATUS_ERROR = 3
A status representing a StreamPeerSocket in error state.
方法说明
void disconnect_from_host() 🔗
与主机断开连接。
返回连接的状态。
Polls the socket, updating its state. See get_status().