Fixed server example for Mac
This commit is contained in:
parent
e032733a92
commit
8ff6faa310
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
import sys
|
||||
|
||||
bind(socket int, port int) -> int {
|
||||
bind(socket int, port uint16) -> int {
|
||||
addr := new(sys.sockaddr_in_bsd)
|
||||
addr.sin_family = 2
|
||||
addr.sin_port = htons(port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue