[process][windows] Implement Connections() using net.ConnectionsPid()

pull/759/head
Lomanic 6 years ago
parent e4ec7b275a
commit f5131dc333

@ -640,7 +640,7 @@ func (p *Process) Connections() ([]net.ConnectionStat, error) {
} }
func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.ConnectionStat, error) { func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.ConnectionStat, error) {
return nil, common.ErrNotImplementedError return net.ConnectionsPidWithContext(ctx, "all", p.Pid)
} }
func (p *Process) ConnectionsMax(max int) ([]net.ConnectionStat, error) { func (p *Process) ConnectionsMax(max int) ([]net.ConnectionStat, error) {

Loading…
Cancel
Save