29 #ifndef STREAM_PEER_TCP_H 30 #define STREAM_PEER_TCP_H 32 #include "stream_peer.h" 34 #include "ip_address.h" 39 OBJ_CATEGORY(
"Networking");
54 static void _bind_methods();
58 virtual Error connect(
const IP_Address& p_host, uint16_t p_port)=0;
62 virtual bool is_connected()
const=0;
63 virtual Status get_status()
const=0;
64 virtual void disconnect()=0;
65 virtual IP_Address get_connected_host()
const=0;
66 virtual uint16_t get_connected_port()
const=0;
67 virtual void set_nodelay(
bool p_enabled)=0;
76 VARIANT_ENUM_CAST( StreamPeerTCP::Status );
Definition: stream_peer_tcp.h:36
Definition: stream_peer.h:34
Definition: ip_address.h:34