Merge pull request #8476 from euantorano/patch-1
Update example code for UDP sockets
This commit is contained in:
commit
52807287a4
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@
|
|||
## immediately.
|
||||
##
|
||||
## .. 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")
|
||||
##
|
||||
## Creating a server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue