Lidgren Network Library documentation |
NetPeer..::..Connect Method (String, Int32, NetOutgoingMessage) |
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, NetOutgoingMessage hailMessage ) |
Visual Basic |
---|
Public Function Connect ( _ host As String, _ port As Integer, _ hailMessage As NetOutgoingMessage _ ) As NetConnection |
Visual C++ |
---|
public: NetConnection^ Connect( String^ host, int port, NetOutgoingMessage^ hailMessage ) |
Parameters
- host
- Type: System..::..String
[Missing <param name="host"/> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32,Lidgren.Network.NetOutgoingMessage)"]
- port
- Type: System..::..Int32
[Missing <param name="port"/> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32,Lidgren.Network.NetOutgoingMessage)"]
- hailMessage
- Type: Lidgren.Network..::..NetOutgoingMessage
[Missing <param name="hailMessage"/> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32,Lidgren.Network.NetOutgoingMessage)"]
Return Value
[Missing <returns> documentation for "M:Lidgren.Network.NetPeer.Connect(System.String,System.Int32,Lidgren.Network.NetOutgoingMessage)"]