You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: connector.go
    path of file: ./repos/cellnet/peer/udp
    
    the code of the file until where you have to start completion: package udp

import (
	"github.com/davyxu/cellnet"
	"github.com/davyxu/cellnet/peer"
	"net"
)

type udpConnector struct {
	peer.CoreSessionManager
	peer.CorePeerProperty
	peer.CoreContextSet
	peer.CoreRunningTag
	peer.CoreProcBundle
	peer.CoreCaptureIOPanic

	remoteAddr *net.UDPAddr

	defaultSes *udpSession
}

func (self *udpConnector) Start() cellnet.Peer {

	var err error
	self.remoteAddr, err = net.ResolveUDPAddr("udp", self.Address())

	if err != nil {

		log.Errorf("#resolve udp addr
    
func (self *udpConnector) connect() {

	conn, err := net.DialUDP("udp", nil, self.remoteAddr)
	if err != nil {

		log.Errorf("#udp.connect failed(%s) %v", self.Name(), err.Error())
		return
	}

	self.defaultSes.setConn(conn)

	ses := self.defaultSes

	self.ProcEvent(&cellnet.RecvMsgEvent{ses, &cellnet.SessionConnected{}})

	recvBuff := make([]byte, MaxUDPRecvBuffer)

	self.SetRunning(true)

	for self.IsRunning() {

		n, _, err := conn.ReadFromUDP(recvBuff)
		if err != nil {
			break
		}

		if n > 0 {
			ses.Recv(recvBuff[:n])
		}

	}
}