Documentation
¶
Index ¶
- Constants
- type Server
- func (s *Server) Close()
- func (s *Server) CloseTLS()
- func (s *Server) Connect() (*net.TCPConn, error)
- func (s *Server) ConnectTLS() (*tls.Conn, error)
- func (s *Server) Show()
- func (s *Server) UpdateTLSTimeout()
- func (s *Server) UpdateTimeout()
- func (s *Server) Write(p []byte) (n int, err error)
- func (s *Server) WriteTLS(p []byte) (n int, err error)
Constants ¶
View Source
const (
// TCPPROTOCOL variable constant for tcp
TCPPROTOCOL = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Host string Port int Connection *net.TCPConn TLSConnection *tls.Conn Timeout int }
Server struct to hold building of a server
func (*Server) ConnectTLS ¶
ConnectTLS connect using TLS
func (*Server) UpdateTLSTimeout ¶
func (s *Server) UpdateTLSTimeout()
UpdateTLSTimeout increase time to continue work
func (*Server) UpdateTimeout ¶
func (s *Server) UpdateTimeout()
UpdateTimeout increase time to continue work
Click to show internal directories.
Click to hide internal directories.