-From Socket Class we can derive many objects:

-The Socket Class and object will send the IP address, port information by validating them to the object of TCP Packet or UDP Packet. We can draw it like this:

Information about the methods and attributes of classes:

Attributes: Socket Class will contain two IP Addresses which are client and host, and therefore two ports.

TCP Packet and UDP Packet will contain same attributes which are header, data, row packet that are used for identifying, checking, blocking the data.

Socket Class has, Check_Socket() which will check the coming and going socket of data according to the basic rules. 

TCP Packet and UDP Packet class have the same methods, which are;

1) Chech_Packet(): Checks the packets according to the basic rules thata give permission to use data.

2) Validate_Packet(): With the help of this method, the program gives valid information about a packet.

3) Block_Packet(): This is the security method that blocks the invalid data which want to go into and damage system.

 

-Main Page-