func NewDLink(server string, opts ...DLinkOpt) *DLink {
	dl := DLink{
		server:   server,
		timeout:  5 * time.Second,
		program:  "seis",
		username: "seis",
	}
	for _, opt := range opts {
		opt(&dl)
	}
	return &dl
}
// NewDLink returns a DLink pointer for the given server, optional settings can be passed
// as DLinkOpt functions.
NewDLink returns a DLink pointer for the given server, optional settings can be passed
as DLinkOpt functions.
// NewDLink returns a DLink pointer for the given server optional settings can be passed // as DLinkOpt functions .
func NewDLink(server string, opts ...DLinkOpt) *DLink {
	dl := DLink{
		server:   server,
		timeout:  5 * time.Second,
		program:  "seis",
		username: "seis",
	}
	for _, opt := range opts {
		opt(&dl)
	}
	return &dl
}
func NewDLink ( server string , opts ... DLinkOpt ) * DLink { dl := DLink { server : server , timeout : 5 * time . Second , program : " " , username : " " , } for _ , opt := range opts { opt ( & dl ) } return & dl }
NewDLink returns a DLink pointer for the given server, optional settings can be passed
as DLinkOpt functions.
NewDLink returns a DLink pointer for the given server optional settings can be passed as DLinkOpt functions .