(global *global.Global, tmpl *event.Event, inode *Inode, fd *fd.FD)
| 29 | } |
| 30 | |
| 31 | func NewSocket(global *global.Global, tmpl *event.Event, inode *Inode, fd *fd.FD) *Socket { |
| 32 | sock := &Socket{global: global, tmpl: tmpl, Inode: inode, FD: fd} |
| 33 | inode.add(sock) |
| 34 | return sock |
| 35 | } |
| 36 | |
| 37 | func CreateSocket(global *global.Global, tmpl *event.Event, domain int, typ int) (*Socket, error) { |
| 38 | if domain != unix.AF_INET && domain != unix.AF_INET6 { |
no test coverage detected