Latest News:

 

Calc Function in C#

Function 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!

Digg It! Add to del.icio.us Stumble This

Posted in Labels: |

0 comments: