Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

SocketObject

SocketObject[]
represents a connected network socket.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Open a connection to a server specified by a URL:

In[1]:=
Click for copyable input
Out[1]=

Write to the socket:

In[2]:=
Click for copyable input

Read the result as a string:

In[3]:=
Click for copyable input

Display the result, without extra newlines:

In[4]:=
Click for copyable input
Out[4]=

Close the socket connection:

In[5]:=
Click for copyable input
Out[5]=
Introduced in 2015
(10.3)