Calc Function in C#
Posted On Saturday, June 7, 2008 at at 1:23 AM by aadiFunction Calculates the size of packet in Octec!
Code:
public string Calc(int pckLen)
{
char size; string rCal;
size=(char)(pckLen/256);
rCal=size.ToString();
size = (char)(pckLen %256);
return rCal + size.ToString();
}
___________________
Thanks and Regards;
s.-.a.-.n.-.j.-.a.
Please comment if you like this post!
An AwaazBandh Presentation!