MCPcopy Index your code
hub / github.com/koding/kite / Port

Method Port

server.go:118–124  ·  view source on GitHub ↗

Port returns the TCP port number that the kite listens. Port must be called after the listener is initialized. You can use ServerReadyNotify function to get notified when listener is ready. Kite starts to listen the port when Run() is called. Since Run() is blocking you need to run it as a goroutin

()

Source from the content-addressed store, hash-verified

116// port := k.Port()
117//
118func (k *Kite) Port() int {
119 if k.listener == nil {
120 return 0
121 }
122
123 return k.listener.Addr().(*net.TCPAddr).Port
124}
125
126func (k *Kite) UseTLS(certPEM, keyPEM string) {
127 if k.TLSConfig == nil {

Callers 3

TestSendErrorFunction · 0.45
NewHelloKiteFunction · 0.45

Calls 1

AddrMethod · 0.80

Tested by 3

TestSendErrorFunction · 0.36
NewHelloKiteFunction · 0.36