
System.Net & accept/connect
yes you can use Net class to to that
sample send for a SMTP mail Server is fallows...........
public void Send()
{
string message;
string response;
Connect(server, 25);
response = Response();
if (response.Substring(0, 3) != "220")
{
throw new SmtpException(response);
};
message = "HELO \r\n";
Write(message);
response = Response();
if (response.Substring(0, 3) != "250")
{
throw new SmtpException(response);
}
Quote:
}
> is possible to implement a client-server connection like as
> accept/connect in C++ with Net classes in C# ?!
> if yes how can i implement a send and so on...?!
> thx