|   | 1 | [wiki:WikiStart Orbit] > [wiki:OTG OTG] > [wiki:OTG/FuncSpec Function Specifications] > Class Port | 
          
          
            |   | 2 |  | 
          
          
            |   | 3 |  | 
          
          
            |   | 4 | = Port = | 
          
          
            |   | 5 |  | 
          
          
            |   | 6 | [source:otg/trunk/src/cpp/port.h#latest Port] is an abstract class for the interface to send (send only) a packet, whether UDP, TCP Socket, or IP raw socket.  | 
          
          
            |   | 7 | The common funcitons for a port are defiend here: | 
          
          
            |   | 8 |  * sendPacket | 
          
          
            |   | 9 | Port is limited for sender-only purpose. Port is also associated with a pair of addresses (source and destination). One Port send to one [source:otg/trunk/src/cpp/address.h#latest Address] only, no matter the address is unicast or broadcast.  | 
          
          
            |   | 10 |  | 
          
          
            |   | 11 | http://www.winlab.rutgers.edu/~zhibinwu/image/classPort.png |