0

In c# when I use the code :

 public System.IAsyncResult BeginConnect(System.Net.EndPoint remoteEP, System.AsyncCallback callback, object state)

I declare the EndPoint with the ip-address of the remote host am communicating with and a port number. In this case the port number represents a port on my system or on the remote host??

John T
  • 23,735
  • 11
  • 56
  • 82
Avik
  • 2,097
  • 7
  • 24
  • 30

1 Answers1

1

You connect to a remote endpoint so the port is the port on remote machine.

Shay Erlichmen
  • 31,691
  • 7
  • 68
  • 87