Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-sockaddr
Commits
d0ced09a
Unverified
Commit
d0ced09a
authored
Apr 28, 2020
by
Steven Allen
Committed by
GitHub
Apr 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18 from libp2p/feat/remove-cgo
fix: remove CGO functions
parents
681f967f
b951524a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
sockaddr_cgo.go
sockaddr_cgo.go
+0
-18
No files found.
sockaddr_cgo.go
deleted
100644 → 0
View file @
681f967f
package
sockaddr
import
(
"C"
"unsafe"
sockaddrnet
"github.com/libp2p/go-sockaddr/net"
)
// AnyToCAny casts a *RawSockaddrAny to a *C.struct_sockaddr_any
func
AnyToCAny
(
a
*
sockaddrnet
.
RawSockaddrAny
)
*
C
.
struct_sockaddr_any
{
return
(
*
C
.
struct_sockaddr_any
)(
unsafe
.
Pointer
(
a
))
}
// CAnyToAny casts a *C.struct_sockaddr_any to a *RawSockaddrAny
func
CAnyToAny
(
a
*
C
.
struct_sockaddr_any
)
*
sockaddrnet
.
RawSockaddrAny
{
return
(
*
sockaddrnet
.
RawSockaddrAny
)(
unsafe
.
Pointer
(
a
))
}
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