System.Net & accept/connect 
Author Message
 System.Net & accept/connect

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



Mon, 28 Mar 2005 15:17:37 GMT  
 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



Mon, 28 Mar 2005 16:54:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. String problem in a DLL that connects .NET to other systems

2. accept/connect

3. ASP.NET (ADO.NET) connect to remote MS Access Database

4. Interrupted system call on accept()

5. CSocket / Accept, trouble accepting multiple connections

6. ANN: Accelent Systems chat: File System Architecture in Windows CE .NET

7. When to use System.Net and System.Runtime.Remoting

8. how to use System.Net in Visual Studio.Net 7.0

9. System.Timers.Timer & System.threading.Timer

10. System Tray && Wav Files

11. Crystal.Net & VS.Net

12. Connect to different system

 

 
Powered by phpBB® Forum Software