Fixed server example for Mac
This commit is contained in:
parent
6698cd95ad
commit
32d81ce98d
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