Sockets: Difference between revisions
Content deleted Content added
m Added Sidef language |
|||
Line 653: | Line 653: | ||
}</lang> |
}</lang> |
||
=={{header|Prolog}}== |
|||
This works with Gnu Prolog. Other implementations will have different predicates. |
|||
<lang Prolog>start(Port) :- socket('AF_INET',Socket), |
|||
socket_connect(Socket, 'AF_INET'(localhost,Port), Input, Output), |
|||
write(Output, 'hello socket world'), |
|||
flush_output(Output), |
|||
close(Output), |
|||
close(Input).</lang> |
|||
=={{header|PureBasic}}== |
=={{header|PureBasic}}== |
||
<lang Purebasic>InitNetwork() |
<lang Purebasic>InitNetwork() |