Abstract base class for interacting with socket streams. StreamPeerSocket is an abstract base class that defines common behavior for socket-based streams. Disconnects from host. Returns the status of the connection. Polls the socket, updating its state. See [method get_status]. The initial status of the [StreamPeerSocket]. This is also the status after disconnecting. A status representing a [StreamPeerSocket] that is connecting to a host. A status representing a [StreamPeerSocket] that is connected to a host. A status representing a [StreamPeerSocket] in error state.