emule

package
v0.0.0-...-65108a0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUFFER_SIZE         int  = 1024
	OP_EDONKEYHEADER    byte = 0xE3
	OP_LOGINREQUEST     byte = 0x01
	OP_SERVERMESSAGE    byte = 0x38
	TAG_STRING          byte = 0x02
	TAG_INTEGER         byte = 0x03
	SPECIAL_TAG_NAME    byte = 0x01
	SPECIAL_TAG_VERSION byte = 0x11
	SPECIAL_TAG_PORT    byte = 0x0F
	MET_HEADER          byte = 0x0E
)

TODO: amule-2.3.1/src/include/protocol/ed2k/Client2Server/TCP.h

Variables

This section is empty.

Functions

This section is empty.

Types

type Client2Server

type Client2Server struct {
	Protocol   string
	Host       string
	Port       int
	ClientPort int32
	NickName   string
	Debug      bool
	// contains filtered or unexported fields
}

func NewClient2Server

func NewClient2Server(protocol, host string, port int, client_port int32,
	nickname string, debug bool) *Client2Server

func (*Client2Server) Connect

func (this *Client2Server) Connect() (ret bool)

func (*Client2Server) Disconnect

func (this *Client2Server) Disconnect()

func (*Client2Server) Login

func (this *Client2Server) Login()

func (*Client2Server) RecvRoutine

func (this *Client2Server) RecvRoutine()

type Server

type Server struct {
	IP   string
	Port int16
	Name string
	Desc string
}

type ServerMet

type ServerMet struct {
	Debug       bool
	IsValid     bool      `access:read`
	ServerCount int32     `access:read`
	Servers     []*Server `access:read`
	// contains filtered or unexported fields
}

func (*ServerMet) OpenFile

func (this *ServerMet) OpenFile(filePath string)

Jump to

Keyboard shortcuts

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