Adarsh's blog

Network programing and unified communications.

Browse by Tags

Tagged Content List
  • Blog Post: UC Managed API (UCMA) v1.0 beta available

    I was eagerly waiting since a long time to write about this exciting news, With the public annonucement of OCS 2007 beta, now we have a managed API known as UCMA is publicly available. Before coming out with official name UCMA, we were internally calling it as Ucp.net sdk. This SDK opens up the Sip signaling...
  • Blog Post: You need to be careful about using event handler for NetworkChange

    Actually the issue I am discussing here is in general true for any event handler. .net event handler are strong reference. In case of NetworkChange it become more important because both event handler on NetworkChange object are static handlers, so there life time is the lifetime of the process. For...
  • Blog Post: Use object pooling of byte arrays to prevent heap fragmentation in socket applications

    When you are worrking on managed socket application and your application is very extensively doing send/recieve on the socket, then probably you need to care about understanding the heap management. Socket.Recieve or Socket.Send finally need to call the underlying native winsock API call to recieve the...
  • Blog Post: WebException message vs. Response.StatusDescription on FtpWebRequest

    Recently one of the reader asked an interesting question, he was using FtpWebRequest with MakeDirectory method, if directory already exist then application received the WebException with message. "The remote server returned an error: (550) File unavailable (e.g., file not found, no access).". This exception...
  • Blog Post: Using FtpWebRequest to do FTP over SSL

    Last few weeks we were busy to get Whidbey Beta-2 bits ready for release. If you are looking for some API where your application could talk to a FTP server, which supports SSL. FtpWebRequest under System.Net namespace is your solution. Here I will just point to SSL specific features of the class ...
  • Blog Post: Use NetworkInformation classes to get the list of listening ports on your machine

    .Net frameworks 2.0 have new addition of Namespace, System.Net.NetworkInformation, it provide a number of interesting classes to extract the network related statistics and state of the machine, it pretty much provide most of the functionality which is exposed by native IPHelper APIs. Earlier I had shown...
  • Blog Post: Update Windows Form UI with Network Available Change Event

    .Net frameworks 2.0 has a new namespace System.Net.NetworkInformation, which you could use to gather various network statistics on the machine, it also provide two interesting events NetworkAddressChanged and NetworkAvailabilityChanged. If you are writing winform application and want to update some UI...
  • Blog Post: Does your application require customizing System.Net.WebPermission, SocketPermission or DnsPermission settings?

    .Net frameworks comes with deefault security settings where components running under Intranet, Internet Zone can only have WebPermission to connect back to the server, from where they are downloaded. Also the component from Intranet zone and Internet zone don't have any SocketPermission and DnsPermission...
  • Blog Post: Resuming broken file download with FtpWebRequest class

    This post is valid for .Netframeworks 2.0 When we are downloading a large file from ftp site and connection got broken in between, on next attempt you would be interested in downloading the rest of the file content instead of full file. FtpWebRequest class have a nice way to meet this requirement. You...
  • Blog Post: Create your own asp.net hosting server with System.Net.HttpListener

    .Net frameworks 2.0 contain HttpListener class under System.Net namespace and a number of ASP.Net hosting classes under System.Web.Hosting namespace. HttpListener class is implemented on top of low level protocol stack http.sys, probably you also know that IIS 6.0 is also architected on top of http.sys...
  • Blog Post: Configure System.Net.HttpListener to listen for SSL

    Whidbey contains cool class HttpListener under System.Net namespace, it allows you to create your your own HttpServer on top of HttpSys. Some of you aske about steps for configuring HttpListener to work with SSL. Basically you need to configure httpsys. You need to bound particular port to a server certificate...
  • Blog Post: C# sample to open command prompt for other than currently logged user

    .Net frameworks 2.0 have some new cool managed APIs. Here is one sample. It is common need to run a process on a user account other than currently logged on user. Following is the simple handy code which I use to open a command prompt with amin previleges, when I am logged on as normal user. There may...
  • Blog Post: Sample code for parsing FtpwebRequest response for ListDirectoryDetails

    This posting is valid for .Net frameworks 2.0 (Currently released as Whidbey Beta1) ResponseStream of FtpWebResponse provides the raw data bytes to the user, s ome of you had asked that it would be more useful to provide methods which return list of directory and files on ListDirectory request to...
  • Blog Post: Understanding the basic of FtpWebRequest programming model on .Net frameworks

    A long standing complain from user of .Net frameworks was that it doesn't have support for popular ftp protocol. This concern is going to addressed in .Net frameworks 2.0. Recently released Whidbey Beta-1 contains FtpWebRequest, FtpWebResponse classes to support FTP protocol. WebRequest/ WebResponse...
  • Blog Post: Using SSL client certificate in WebRequest and WebServices without certificate installation

    If you are using .Net frameworks 1.0 or 1.1, certificate must be installed on either User store or Machine Store. This posting is only valid for v2.0. In version 2.0 (Currently released Whidbey Beta1) user have option to use the certificate which contain the private key without installing it on certificate...
Page 1 of 1 (15 items)