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