Merge pull request #8476 from euantorano/patch-1

Update example code for UDP sockets
This commit is contained in:
Dominik Picheta 2018-07-30 13:44:38 +01:00 • committed by GitHub
commit 52807287a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@
## immediately. ## immediately.
## ##
## .. code-block:: Nim ## .. code-block:: Nim
## var socket = newSocket() ## var socket = newSocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
## socket.sendTo("192.168.0.1", Port(27960), "status\n") ## socket.sendTo("192.168.0.1", Port(27960), "status\n")
## ##
## Creating a server ## Creating a server