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]
impl NetworkedMultiplayerENetpub fn as_networked_multiplayer_peer(&self) -> NetworkedMultiplayerPeer[src]
pub fn as_networked_multiplayer_peer(&self) -> NetworkedMultiplayerPeerUp-cast.
pub fn new() -> Self[src]
pub fn new() -> Selfpub fn new_ref(&self) -> Self[src]
pub fn new_ref(&self) -> SelfCreates 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]
pub fn create_server(
&mut self,
port: i64,
max_clients: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResultpub fn create_client(
&mut self,
ip: GodotString,
port: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResult[src]
pub fn create_client(
&mut self,
ip: GodotString,
port: i64,
in_bandwidth: i64,
out_bandwidth: i64
) -> GodotResultpub fn close_connection(&mut self)[src]
pub fn close_connection(&mut self)pub fn set_compression_mode(&mut self, mode: i64)[src]
pub fn set_compression_mode(&mut self, mode: i64)pub fn set_bind_ip(&mut self, ip: GodotString)[src]
pub fn set_bind_ip(&mut self, ip: GodotString)pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Methods from Deref<Target = NetworkedMultiplayerPeer>
pub fn as_packet_peer(&self) -> PacketPeer[src]
pub fn as_packet_peer(&self) -> PacketPeerUp-cast.
pub fn set_transfer_mode(&mut self, mode: i64)[src]
pub fn set_transfer_mode(&mut self, mode: i64)pub fn set_target_peer(&mut self, id: i64)[src]
pub fn set_target_peer(&mut self, id: i64)pub fn get_packet_peer(&self) -> i64[src]
pub fn get_packet_peer(&self) -> i64pub fn poll(&mut self)[src]
pub fn poll(&mut self)pub fn get_unique_id(&self) -> i64[src]
pub fn get_unique_id(&self) -> i64pub fn set_refuse_new_connections(&mut self, enable: bool)[src]
pub fn set_refuse_new_connections(&mut self, enable: bool)pub fn is_refusing_new_connections(&self) -> bool[src]
pub fn is_refusing_new_connections(&self) -> boolpub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for NetworkedMultiplayerENet[src]
impl GodotObject for NetworkedMultiplayerENetfn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut godot_object) -> Self[src]
unsafe fn from_sys(obj: *mut godot_object) -> Selfunsafe fn to_sys(&self) -> *mut godot_object[src]
unsafe fn to_sys(&self) -> *mut godot_objectimpl Deref for NetworkedMultiplayerENet[src]
impl Deref for NetworkedMultiplayerENettype Target = NetworkedMultiplayerPeer
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for NetworkedMultiplayerENet[src]
impl DerefMut for NetworkedMultiplayerENetimpl Drop for NetworkedMultiplayerENet[src]
impl Drop for NetworkedMultiplayerENetAuto Trait Implementations
impl !Send for NetworkedMultiplayerENet
impl !Send for NetworkedMultiplayerENetimpl !Sync for NetworkedMultiplayerENet
impl !Sync for NetworkedMultiplayerENet