Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
0e7995c0
Commit
0e7995c0
authored
Feb 23, 2011
by
Alex Brainman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: refactor windows code
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/4185054
parent
0cf6f8c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
fd_windows.go
src/pkg/net/fd_windows.go
+0
-0
syscall_windows.go
src/pkg/syscall/syscall_windows.go
+0
-20
ztypes_windows_386.go
src/pkg/syscall/ztypes_windows_386.go
+1
-0
No files found.
src/pkg/net/fd_windows.go
View file @
0e7995c0
This diff is collapsed.
Click to expand it.
src/pkg/syscall/syscall_windows.go
View file @
0e7995c0
...
...
@@ -653,26 +653,6 @@ func Shutdown(fd, how int) (errno int) {
return
int
(
shutdown
(
int32
(
fd
),
int32
(
how
)))
}
func
AcceptIOCP
(
iocpfd
,
fd
int
,
o
*
Overlapped
)
(
attrs
*
byte
,
errno
int
)
{
// Will ask for local and remote address only.
rsa
:=
make
([]
RawSockaddrAny
,
2
)
attrs
=
(
*
byte
)(
unsafe
.
Pointer
(
&
rsa
[
0
]))
alen
:=
uint32
(
unsafe
.
Sizeof
(
rsa
[
0
]))
var
done
uint32
errno
=
AcceptEx
(
uint32
(
iocpfd
),
uint32
(
fd
),
attrs
,
0
,
alen
,
alen
,
&
done
,
o
)
return
}
func
GetAcceptIOCPSockaddrs
(
attrs
*
byte
)
(
lsa
,
rsa
Sockaddr
)
{
var
lrsa
,
rrsa
*
RawSockaddrAny
var
llen
,
rlen
int32
alen
:=
uint32
(
unsafe
.
Sizeof
(
*
lrsa
))
GetAcceptExSockaddrs
(
attrs
,
0
,
alen
,
alen
,
&
lrsa
,
&
llen
,
&
rrsa
,
&
rlen
)
lsa
,
_
=
lrsa
.
Sockaddr
()
rsa
,
_
=
rrsa
.
Sockaddr
()
return
}
func
WSASendto
(
s
uint32
,
bufs
*
WSABuf
,
bufcnt
uint32
,
sent
*
uint32
,
flags
uint32
,
to
Sockaddr
,
overlapped
*
Overlapped
,
croutine
*
byte
)
(
errno
int
)
{
rsa
,
l
,
err
:=
to
.
sockaddr
()
if
err
!=
0
{
...
...
src/pkg/syscall/ztypes_windows_386.go
View file @
0e7995c0
...
...
@@ -28,6 +28,7 @@ const (
ERROR_PROC_NOT_FOUND
=
127
ERROR_ENVVAR_NOT_FOUND
=
203
ERROR_DIRECTORY
=
267
ERROR_OPERATION_ABORTED
=
995
ERROR_IO_PENDING
=
997
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment