Sockets: Difference between revisions
Content deleted Content added
m →{{header|Go}}: defer Close to ensure it's called even if Write fails; remove unneeded return (i.e., make code idiomatic) |
No edit summary |
||
Line 153:
DllCall("Ws2_32\WSACleanup")
ExitApp</lang>
=={{header|AutoIt}}==
<lang AutoIt>
Func _HelloWorldSocket()
TCPStartup()
$Socket = TCPConnect("127.0.0.1", 256)
TCPSend($Socket, "Hello World")
TCPCloseSocket($Socket)
TCPShutdown()
EndFunc</lang>
=={{header|BBC BASIC}}==
|