public ConnectionAttemptResult StartClient(string address, ushort port, string password = "", short attempts = 10) { if (pointer == IntPtr.Zero) { return(ConnectionAttemptResult.INVALID_CONNECT_PARAMETER); } ConnectionAttemptResult = RakPeer_Native.NET_StartClient(pointer, address, port, password, attempts); if (ConnectionAttemptResult == ConnectionAttemptResult.CONNECTION_ATTEMPT_STARTED) { Type = PeerType.Client; is_shutteddown = false; } return(ConnectionAttemptResult); }