Exploring the System.Net namespace

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Exploring the System.Net namespace - Presentation Transcript

    1. Exploring the System.Net Namespace in the .NET Framework 2.0 Glen Gordon MSDN Developer Community Champion Microsoft http://blogs.msdn.com/glengordon
    2. Agenda
      • Network Status and Connectivity
      • Protocols
        • SMTP
        • FTP
      • Security
      • HTTP Listener
    3. Network Status and Connectivity
      • Obtain network configuration and availability
      • Listen for changes in network status
    4. Network Information
      • System.Net.NetworkInformation namespace
      • Enumerate network interfaces (adapters)
      • Connection information
        • IP Address(es)
        • IPv4 vs IPv6
        • DHCP
        • Type (Ethernet, PPP, wireless, loopback, etc.)
    5. Detecting Changes
      • NetworkChange class
        • NetworkAddressChanged event
        • NetworkAvailabilityChanged event
      • Shortcut in My namespace
        • My.Computer.Network.IsAvailable property
        • My.Computer.Network.NetworkAvailabilityChanged Event
    6. Demonstration One Network Status
    7. Ping
      • System.Net.NetworkInformation namespace
      • Synchronous or asynchronous
      • PingReply class
      • Shortcut in My namespace
        • My.Computer.Network.Ping
    8. Demonstration Two Using Ping
    9. Mail
      • System.Net.Mail namespace
      • SmtpClient class
        • Server, credentials, port, etc.
      • MailMessage class
        • Address (from, to, bcc, etc.)
        • Contents (subject, body, alternate views)
        • Attachments
      • Exceptions and status
    10. Demonstration Three Sending Mail
    11. FTP
      • FtpWebRequest/FtpWebResponse
        • Derived from WebRequest/WebResponse
      • SSL support for more secure credentials
      • Remote commands
      • Shortcut in My namespace
        • My.Computer.Network.DownloadFile
        • My.Computer.Network.UploadFile
    12. Demonstration Four FTP
    13. Security
      • Managed wrapper for Security Support Provider Interface (SSPI)
      • Abstract class AuthenticatedStream
        • Server and/or client authentication
        • Encryption and signing
      • Can be used just like NetworkStream
        • Synchronous or asynchronous
    14. NegotiateStream
      • Kerberos and Windows NT ® Challenge/Response (NTLM) support
      • Send client credentials for impersonation or delegation
        • Credentials can be cast as Principal
      • Request server authentication
      • Encrypt and/or sign data
        • Check for signing and encrypting
    15. SslStream
      • X.509 certificates
      • Client can check for server certificate revocation
      • Provide client certificate for mutual authentication
      • Exposes cryptographic settings for authentication, encryption and data signing
    16. Demonstration Five Secure Communications
    17. HTTP Listener
      • Process HTTP requests without Internet Information Services (IIS)
      • Managed API for HTTP.SYS
        • HTTP 1.0/1.1, authentication, SSL
        • Shares ports (Microsoft ® Windows Server™ 2003 or higher)
      • Synchronous/asynchronous
      • HttpListenerRequest/HttpListenerResponse
    18. Demonstration Six HTTP Listener
    19. Session Summary
      • Your SmartClient app can be smart about network availability and configuration
      • Mail support is versatile and standards-based (and completely managed code now!)
      • Using request/response pattern is easy when using FTP or HTTP
      • Communications via sockets is easier than ever to secure
      • HTTP Listener allows you to handle web requests in scenarios where IIS isn’t appropriate
    20. Additional Resources
      • All about System.Net.Mail
        • http://www.systemnetmail.com
      • Series of articles on FTP
        • http://blogs.msdn.com/adarshk/archive/category/7225.aspx
      • Comprehensive example of HTTP Listener
        • http://weblogs.asp.net/pglavich/archive/2005/09/04/424392.aspx
    21.  

    + V SanchezV Sanchez, 2 years ago

    custom

    2094 views, 0 favs, 0 embeds more stats

    Exploring the System.Net namespace

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2094
      • 2094 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags