 | LibrarySpawnNewConnection Method |
Before connecting to a TeamSpeak 3 server, a new
Connection needs to be spawned. With a
Connection a connection can be established and dropped multiple times, so for simply reconnecting to the same or another server no new
Connection needs to be spawned but existing ones can be reused. However, for using multiple connections simultaneously a new
Connection has to be spawned for each connection.
Namespace:
TeamSpeak.Sdk.Client
Assembly:
TeamSpeak.Sdk (in TeamSpeak.Sdk.dll) Version: 0.1.6124.20226 (0.1.0.0)
Syntaxpublic static Connection SpawnNewConnection(
int port = 0
)
Public Shared Function SpawnNewConnection (
Optional port As Integer = 0
) As Connection
public:
static Connection^ SpawnNewConnection(
int port = 0
)
static member SpawnNewConnection :
?port : int
(* Defaults:
let _port = defaultArg port 0
*)
-> Connection
Parameters
- port (Optional)
- Type: SystemInt32
Port the client should bind on. Default is 0 to let the operating system chose any free port.
Return Value
Type:
Connectiona new
Connection.
See Also