Network Programming

The Wolfram Language includes built-in network programming, allowing uniform convenient access to TCP socket functionality on all platforms, as well as a variety of functions for network connectivity and name resolution.

ReferenceReference

IPAddress symbolic representation of an IPv4 or IPv6 IP address

URL symbolic representation of a URL, potentially including a port number (default: 80)

SocketConnect open a connection to a server at a given socket address

SocketObject symbolic representation of a connected socket

Operations on Sockets

Write  ▪  Read  ▪  ReadList  ▪  Skip

BinaryWrite  ▪  BinaryRead  ▪  BinaryReadList

WriteString  ▪  ReadString

Import  ▪  Export

OpenRead  ▪  OpenWrite  ▪  Close

Utilities

HostLookup look up an IP address or host name (DNS and reverse DNS)

PingTime give the ping time for a network host

TimeConstrained allow only a specified time for network connection

HTTPRequest  ▪  HTTPResponse  ▪  URLRead  ▪  URLSubmit

URLBuild  ▪  URLParse

Pub-Sub Channel Communication »

CreateChannel  ▪  ChannelSend  ▪  ChannelListen  ▪  ...