Subscribe to Subscribers
Talk to Webmaster Tony John

Resources » Code Snippets » C# Syntax

How To check whether a Port Number is Valid or not?


Posted Date:     Category: C# Syntax    
Author: Member Level: Gold    Points: 5



 


How To check whether a Port Number is Valid or not?

Public CheckingPortNumberValidity(ByVal portNum As Integer) As Boolean
{
If portNum >= 0 And portNum <= 65535 Then Return True


Messagebox.Show(isPortNumberValid(2345).ToString())
Return False
}





Did you like this resource? Share it with your friends and show your love!


Responses to "How To check whether a Port Number is Valid or not?"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Exclude some object while serializing
    Previous Resource: Code for sending E-Mail
    Return to Resources
    Post New Resource
    Category: C# Syntax


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    How To check whether a Port Number is Valid or not?  .  
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.