net

package
v0.0.0-...-b12e7ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-09 11:57:00 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-09 12:11:18 * @FilePath: \go-course\net\server.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

Index

Constants

View Source
const (
	NumOfByte = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Network string
	Addr    string
}

func NewClient

func NewClient(network, addr string) *Client

func (*Client) Send

func (c *Client) Send(data string) (err error)

type Server

type Server struct {
	NetWork string
	Addr    string
}

func NewServer

func NewServer(network, addr string) *Server

func (*Server) ConnHandle

func (s *Server) ConnHandle(conn net.Conn) (err error)

func (*Server) Send

func (s *Server) Send() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL