summaryrefslogtreecommitdiff
path: root/src/pkg/net/sock_windows.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2012-01-14 13:42:18 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2012-01-14 13:42:18 +0900
commitbb6f341211451694027639e51e1d42adb6be3c7e (patch)
tree4774a6ddca079acf1c83dc3722d7bcd14eb63045 /src/pkg/net/sock_windows.go
parentf460a20ddf9c67c0fd948454dda984efb32ed9a6 (diff)
downloadgo-bb6f341211451694027639e51e1d42adb6be3c7e.tar.gz
net: make use of the kernel state to listen on TCP, Unix
R=golang-dev, dave, minux.ma CC=golang-dev http://codereview.appspot.com/5545044
Diffstat (limited to 'src/pkg/net/sock_windows.go')
-rw-r--r--src/pkg/net/sock_windows.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pkg/net/sock_windows.go b/src/pkg/net/sock_windows.go
new file mode 100644
index 000000000..2d803de1f
--- /dev/null
+++ b/src/pkg/net/sock_windows.go
@@ -0,0 +1,14 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Sockets for Windows
+
+package net
+
+import "syscall"
+
+func maxListenerBacklog() int {
+ // TODO: Implement this
+ return syscall.SOMAXCONN
+}