func (this *HostPort) GetPort() int {
	return this.port
}
get the port field
@return int
package core
import (
	"bytes"
	"net"
	"strconv"
)
type HostPort struct {
	host *Host
	port int
}
func NewHostPort() *HostPort {
	this := &HostPort{}  
	this.port = -1
	return this
}
func (this *HostPort) String() string {
	var retval bytes.Buffer  
	if this.host != nil {
		retval.WriteString(this.host.String())
		if this.port != -1 {
			retval.WriteString(SIPSeparatorNames_COLON + strconv.Itoa(this.port))
		}
	}
	return retval.String()
}
func (this *HostPort) GetHost() *Host {
	return this.host
}