Struct gdnative::NetworkedMultiplayerENet
[−]
[src]
pub struct NetworkedMultiplayerENet { /* fields omitted */ }
core class NetworkedMultiplayerENet : NetworkedMultiplayerPeer
(reference counted)
Base class
NetworkedMultiplayerENet inherits NetworkedMultiplayerPeer and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl NetworkedMultiplayerENet
[src]
pub fn as_networked_multiplayer_peer(&self) -> NetworkedMultiplayerPeer
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn create_server(
&mut self,
port: i64,
max_clients: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResult
[src]
&mut self,
port: i64,
max_clients: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResult
pub fn create_client(
&mut self,
ip: GodotString,
port: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResult
[src]
&mut self,
ip: GodotString,
port: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResult
pub fn close_connection(&mut self)
[src]
pub fn set_compression_mode(&mut self, mode: i64)
[src]
pub fn set_bind_ip(&mut self, ip: GodotString)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = NetworkedMultiplayerPeer>
pub fn as_packet_peer(&self) -> PacketPeer
[src]
Up-cast.
pub fn set_transfer_mode(&mut self, mode: i64)
[src]
pub fn set_target_peer(&mut self, id: i64)
[src]
pub fn get_packet_peer(&self) -> i64
[src]
pub fn poll(&mut self)
[src]
pub fn get_unique_id(&self) -> i64
[src]
pub fn set_refuse_new_connections(&mut self, enable: bool)
[src]
pub fn is_refusing_new_connections(&self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for NetworkedMultiplayerENet
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for NetworkedMultiplayerENet
[src]
type Target = NetworkedMultiplayerPeer
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.