Lidgren Network Library documentation |
NetPeer..::..Connect Method (String, Int32) |
NetPeer Class See Also Send Feedback |
Create a connection to a remote endpoint
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public NetConnection Connect( string host, int port ) |
Visual Basic |
---|
Public Function Connect ( _ host As String, _ port As Integer _ ) As NetConnection |
Visual C++ |
---|
public: NetConnection^ Connect( String^ host, int port ) |
Parameters
- host
- Type: System..::..String
[Missing <param name="host"/> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32)"]
- port
- Type: System..::..Int32
[Missing <param name="port"/> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32)"]
Return Value
[Missing <returns> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32)"]