SocketObject

SocketObject[]

represents a connected network socket.

Details

Examples

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]=

See Also

SocketConnect  InputStream  OutputStream  CloudObject

Introduced in 2015
(10.3)