Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Sockets/Odin/sockets.odin
Normal file
14
Task/Sockets/Odin/sockets.odin
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import "core:fmt"
|
||||
import "core:net"
|
||||
|
||||
MSG: string : "hello socket world"
|
||||
|
||||
main :: proc() {
|
||||
sock, err := net.dial_tcp("127.0.0.1:256")
|
||||
if err != nil do fmt.panicf("Connection failed: %v", err)
|
||||
|
||||
_, err = net.send(sock, transmute([]u8)MSG)
|
||||
if err != nil do fmt.panicf("Error sending: %v", err)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue