ODPM 266: Go-libmemif + 2 examples.
[govpp.git] / vendor / github.com / google / gopacket / pcap / pcap_windows.go
1 // Copyright 2012 Google, Inc. All rights reserved.
2 // Copyright 2009-2011 Andreas Krennmair. All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style license
5 // that can be found in the LICENSE file in the root of the source
6 // tree.
7
8 package pcap
9
10 import (
11         "runtime"
12 )
13
14 func (p *Handle) openLive() error {
15         // do nothing
16         return nil
17 }
18
19 // waitForPacket waits for a packet or for the timeout to expire.
20 func (p *Handle) waitForPacket() {
21         // can't use select() so instead just switch goroutines
22         runtime.Gosched()
23 }