winsys

package
v0.0.0-...-2aaa881 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FD_CLOSE = 1 << 5
View Source
const FD_READ = 1 << 0
View Source
const FD_WRITE = 1 << 1
View Source
const (
	FROM_PROTOCOL_INFO = -1
)
View Source
const WSA_WAIT_EVENT_0 = 0
View Source
const WSA_WAIT_TIMEOUT = 0x102

Variables

This section is empty.

Functions

func WSACloseEvent

func WSACloseEvent(event windows.Handle) (err error)

func WSACreateEvent

func WSACreateEvent() (event windows.Handle, err error)

func WSADuplicateSocket

func WSADuplicateSocket(socket windows.Handle, processID uint32, protocolInfo *WSAPROTOCOL_INFO) (err error)

func WSAEventSelect

func WSAEventSelect(fd windows.Handle, event windows.Handle, networkevents int32) (err error)

func WSASocket

func WSASocket(af int32, tp int32, protocol int32, protocolInfo *WSAPROTOCOL_INFO, g GROUP, flags uint32) (socket windows.Handle, err error)

func WSAWaitForMultipleEvents

func WSAWaitForMultipleEvents(cEvents uint32, events *windows.Handle, waitAll bool, timeout uint32, alerttable bool) (result int32, err error)

Types

type GROUP

type GROUP uint32

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

type WSAPROTOCOLCHAIN

type WSAPROTOCOLCHAIN struct {
	ChainLen     int32
	ChainEntries [max_protocol_chain]uint32
}

type WSAPROTOCOL_INFO

type WSAPROTOCOL_INFO struct {
	ServiceFlags1     uint32
	ServiceFlags2     uint32
	ServiceFlags3     uint32
	ServiceFlags4     uint32
	ProviderFlags     uint32
	ProviderID        GUID
	CatalogEntryID    uint32
	ProtocolChain     WSAPROTOCOLCHAIN
	Version           int32
	AddressFamily     int32
	MaxSockAddr       int32
	MinSockAddr       int32
	SocketType        int32
	Protocol          int32
	ProtocolMaxOffset int32
	NetworkByteOrder  int32
	SecurityScheme    int32
	MessageSize       uint32
	ProviderReserved  uint32
	Protocols         [wsaprotocol_len + 1]uint16
}

Jump to

Keyboard shortcuts

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