socket

package
v0.0.0-...-d6b8a38 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conf SocketConfig) (*net.TCPConn, error)

Types

type Conn

type Conn interface {
	Read([]byte) (int, error)
	Write([]byte) (int, error)
	Close() error
}

type SocketConfig

type SocketConfig struct {
	ServerIP   string
	ServerPort string
	ClientIP   string
	ClientPort int
}

Directories

Path Synopsis
Package mock_socket is a generated GoMock package.
Package mock_socket is a generated GoMock package.
a client to check the connection with a server
a client to check the connection with a server
an echo server to check the connection with a client
an echo server to check the connection with a client

Jump to

Keyboard shortcuts

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