Update example code for UDP sockets

This commit is contained in:
Euan T 2018-07-30 13:39:32 +01:00 • committed by GitHub
commit e11d52a4e8
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