Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# - Not sure what's wrong here
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
C# - Not sure what's wrong here
Miscellaneous
Thread ID:
01079404
Message ID:
01079404
Views:
49
I'm getting this error on the last line below. Anyone know what's wrong?

'System.Net.IPEndPoint' is a 'type' but is used like a 'variable'
// Create an instance of the endpoint object
iPortNo = int.Parse(txtPort.Text); sIPAddress = txtIP.Text;
IPEndPoint oEndPoint = new IPEndPoint(IPAddress.Parse(sIPAddress), iPortNo);

oServer.BeginConnect(IPEndPoint, new AsyncCallback(Connected), oServer);
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform