|  | @@ -2,7 +2,7 @@ package net
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // Destination represents a network destination including address and protocol (tcp / udp).
 |  |  // Destination represents a network destination including address and protocol (tcp / udp).
 | 
											
												
													
														|  |  type Destination interface {
 |  |  type Destination interface {
 | 
											
												
													
														|  | -	Network() string  // Protocol of communication (tcp / udp)
 |  | 
 | 
											
												
													
														|  | 
 |  | +	Network() Network // Protocol of communication (tcp / udp)
 | 
											
												
													
														|  |  	Address() Address // Address of destination
 |  |  	Address() Address // Address of destination
 | 
											
												
													
														|  |  	Port() Port
 |  |  	Port() Port
 | 
											
												
													
														|  |  	String() string // String representation of the destination
 |  |  	String() string // String representation of the destination
 | 
											
										
											
												
													
														|  | @@ -28,8 +28,8 @@ type tcpDestination struct {
 | 
											
												
													
														|  |  	port    Port
 |  |  	port    Port
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -func (dest *tcpDestination) Network() string {
 |  | 
 | 
											
												
													
														|  | -	return "tcp"
 |  | 
 | 
											
												
													
														|  | 
 |  | +func (dest *tcpDestination) Network() Network {
 | 
											
												
													
														|  | 
 |  | +	return TCPNetwork
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func (dest *tcpDestination) Address() Address {
 |  |  func (dest *tcpDestination) Address() Address {
 | 
											
										
											
												
													
														|  | @@ -74,8 +74,8 @@ type udpDestination struct {
 | 
											
												
													
														|  |  	port    Port
 |  |  	port    Port
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -func (dest *udpDestination) Network() string {
 |  | 
 | 
											
												
													
														|  | -	return "udp"
 |  | 
 | 
											
												
													
														|  | 
 |  | +func (dest *udpDestination) Network() Network {
 | 
											
												
													
														|  | 
 |  | +	return UDPNetwork
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func (dest *udpDestination) Address() Address {
 |  |  func (dest *udpDestination) Address() Address {
 |