network

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PermanentRejectReasons map[byte]string = map[byte]string{
	0: "No reason given",
	1: "No reason given",
	2: "Application context not supported",
	3: "Calling AE not recognized",
	7: "Called AE not recognized",
}

PermanentRejectReasons - Permanent association reject reasons

View Source
var TransientRejectReasons map[byte]string = map[byte]string{
	0: "No reason given",
	1: "Temporary congestion",
	2: "Local limit exceeded",
}

TransientRejectReasons - Transient association reject reasons

Functions

func Resetuniq

func Resetuniq()

Resetuniq - Resetuniq

func Uniq8

func Uniq8() byte

Uniq8 - Uniq8

func Uniq8odd

func Uniq8odd() byte

Uniq8odd - Uniq8odd

func Uniq16

func Uniq16() uint16

Uniq16 - Uniq16

func Uniq16odd

func Uniq16odd() uint16

Uniq16odd - Uniq16odd

Types

type AAbortRQ

type AAbortRQ interface {
	GetReason() string
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AAbortRQ - AAbortRQ

func NewAAbortRQ

func NewAAbortRQ() AAbortRQ

NewAAbortRQ - NewAAbortRQ

type AAssociationAC

type AAssociationAC interface {
	GetAppContext() UIDItem
	SetAppContext(context UIDItem)
	GetCallingAE() string
	SetCallingAE(AET string)
	GetCalledAE() string
	SetCalledAE(AET string)
	AddPresContextAccept(context PresentationContextAccept)
	GetPresContextAccepts() []PresentationContextAccept
	GetUserInformation() UserInformation
	SetUserInformation(UserInfo UserInformation)
	GetMaxSubLength() uint32
	SetMaxSubLength(length uint32)
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AAssociationAC AAssociationAC

func NewAAssociationAC

func NewAAssociationAC() AAssociationAC

NewAAssociationAC NewAAssociationAC

type AAssociationRJ

type AAssociationRJ interface {
	GetReason() string
	Set(result byte, reason byte)
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AAssociationRJ association reject struct

func NewAAssociationRJ

func NewAAssociationRJ() AAssociationRJ

NewAAssociationRJ creates an association reject

type AAssociationRQ

type AAssociationRQ interface {
	GetAppContext() UIDItem
	SetAppContext(context UIDItem)
	GetCallingAE() string
	SetCallingAE(AET string)
	GetCalledAE() string
	SetCalledAE(AET string)
	GetPresContexts() []PresentationContext
	GetUserInformation() UserInformation
	SetUserInformation(userInfo UserInformation)
	GetMaxSubLength() uint32
	SetMaxSubLength(length uint32)
	GetImpClass() UIDItem
	SetImpClassUID(uid string)
	SetImpVersionName(name string)
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) error
	AddPresContexts(presentationContext PresentationContext)
}

AAssociationRQ - AAssociationRQ

func NewAAssociationRQ

func NewAAssociationRQ() AAssociationRQ

NewAAssociationRQ - NewAAssociationRQ

type AReleaseRP

type AReleaseRP interface {
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AReleaseRP - AReleaseRP

func NewAReleaseRP

func NewAReleaseRP() AReleaseRP

NewAReleaseRP - NewAReleaseRP

type AReleaseRQ

type AReleaseRQ interface {
	Size() uint32
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AReleaseRQ AReleaseRQ

func NewAReleaseRQ

func NewAReleaseRQ() AReleaseRQ

NewAReleaseRQ NewAReleaseRQ

type AsyncOperationWindow

type AsyncOperationWindow interface {
	GetMaxNumberOperationsInvoked() uint16
	GetMaxNumberOperationsPerformed() uint16
	Size() uint16
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

AsyncOperationWindow - AsyncOperationWindow

func NewAsyncOperationWindow

func NewAsyncOperationWindow() AsyncOperationWindow

NewAsyncOperationWindow - NewAsyncOperationWindow

type Destination

type Destination struct {
	ID        string
	Name      string
	HostName  string
	CalledAE  string
	CallingAE string
	Port      int
	IsCStore  bool
	IsCFind   bool
	IsCMove   bool
	IsMWL     bool
	IsTLS     bool
	Anonymize bool
}

Destination - a DICOM destination

type MaximumSubLength

type MaximumSubLength interface {
	GetMaximumLength() uint32
	SetMaximumLength(length uint32)
	Size() uint16
	Write(rw *bufio.ReadWriter) bool
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

MaximumSubLength - MaximumSubLength

func NewMaximumSubLength

func NewMaximumSubLength() MaximumSubLength

NewMaximumSubLength - NewMaximumSubLength

type PDUService

type PDUService interface {
	GetTransferSyntax(pcid byte) *transfersyntax.TransferSyntax
	SetTimeout(timeout int)
	Connect(IP string, Port string) error
	Close()
	GetAAssociationRQ() AAssociationRQ
	GetCalledAE() string
	GetCallingAE() string
	SetCalledAE(calledAE string)
	SetCallingAE(callingAE string)
	SetConn(rw *bufio.ReadWriter)
	NextPDU() (media.DcmObj, error)
	AddPresContexts(presentationContext PresentationContext)
	GetPresentationContextID() byte
	SetOnAssociationRequest(f func(request AAssociationRQ) bool)
	Write(DCO media.DcmObj, ItemType byte) error
	// contains filtered or unexported methods
}

PDUService - struct for PDUService

func NewPDUService

func NewPDUService() PDUService

NewPDUService - creates a pointer to PDUService

type PDV

type PDV struct {
	Length                uint32
	PresentationContextID byte
	MsgHeader             byte
}

type PDataTF

type PDataTF struct {
	ItemType  byte
	Reserved1 byte
	Length    uint32
	Buffer    media.BufData
	BlockSize uint32
	MsgStatus uint32
	Endian    uint32

	PresentationContextID byte
	MsgHeader             byte
	// contains filtered or unexported fields
}

PDataTF - PDataTF

func (*PDataTF) ReadDynamic

func (pd *PDataTF) ReadDynamic(ms media.MemoryStream) (err error)

ReadDynamic - ReadDynamic

func (*PDataTF) Write

func (pd *PDataTF) Write(rw *bufio.ReadWriter) error

type PresentationContext

type PresentationContext interface {
	GetPresentationContextID() byte
	SetPresentationContextID(id byte)
	GetAbstractSyntax() UIDItem
	SetAbstractSyntax(Abst string)
	AddTransferSyntax(Tran string)
	GetTransferSyntaxes() []UIDItem
	Size() uint16
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) error
	ReadDynamic(ms media.MemoryStream) error
}

PresentationContext - PresentationContext

func NewPresentationContext

func NewPresentationContext() PresentationContext

NewPresentationContext - NewPresentationContext

type PresentationContextAccept

type PresentationContextAccept interface {
	GetPresentationContextID() byte
	SetPresentationContextID(id byte)
	GetResult() byte
	SetResult(result byte)
	GetTrnSyntax() UIDItem
	Size() uint16
	GetAbstractSyntax() UIDItem
	SetAbstractSyntax(Abst string)
	SetTransferSyntax(Tran string)
	Write(rw *bufio.ReadWriter) (err error)
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

PresentationContextAccept accepted presentation context

func NewPresentationContextAccept

func NewPresentationContextAccept() PresentationContextAccept

NewPresentationContextAccept creates a PresentationContextAccept

type RoleSelect

type RoleSelect interface {
	Size() uint16
	Write(rw *bufio.ReadWriter) bool
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

RoleSelect - RoleSelect

func NewRoleSelect

func NewRoleSelect() RoleSelect

NewRoleSelect - NewRoleSelect

type UIDItem

type UIDItem interface {
	GetLength() uint16
	GetReserved() byte
	GetSize() uint16
	GetType() byte
	GetUID() string
	SetReserved(reserve byte)
	SetLength(length uint16)
	SetType(itemType byte)
	SetUID(uid string)
	Write(rw *bufio.ReadWriter) error
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

UIDitem - UIDitem

func NewUIDItem

func NewUIDItem(uid string, itemType byte) UIDItem

type UserInformation

type UserInformation interface {
	GetItemType() byte
	SetItemType(t byte)
	GetAsyncOperationWindow() AsyncOperationWindow
	GetMaxSubLength() MaximumSubLength
	SetMaxSubLength(length MaximumSubLength)
	Size() uint16
	GetImpClass() UIDItem
	SetImpClassUID(name string)
	GetImpVersion() UIDItem
	SetImpVersionName(name string)
	Write(rw *bufio.ReadWriter) (err error)
	Read(ms media.MemoryStream) (err error)
	ReadDynamic(ms media.MemoryStream) (err error)
}

UserInformation - UserInformation

func NewUserInformation

func NewUserInformation() UserInformation

NewUserInformation - NewUserInformation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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