Questions tagged [socket]
Question about sending or receiving data via a connection to a server TCP socket in Mathematica.
26 questions
2
votes
0
answers
161
views
Real-Time Financial Data Analysis with Python/Wolfram Language Hybrid – Overcoming Blocking Issues
Background Information:
I'm in the process of building a workflow for real-time financial data analysis using the Wolfram Language on a budget. Due to the lack of native websocket support in ...
1
vote
0
answers
33
views
How can I distribute computations requiring socket connections with ParallelSubmit?
I have two computers over which I would like to distribute some large-scale computations. On each computer there is a TCP server, written in another language, that listens for requests and return the ...
11
votes
0
answers
382
views
Mathematica 13.3 breaks old socket code
Edit 3: This bug is no longer present in Version 14.1.
It appears to have been fixed in either Version 14.0 or Version 14.1.
Edit 1: A support case with the identification [CASE:5059026] was created.
...
3
votes
1
answer
104
views
What crops the response from the SocketListen based web server?
I noticed that when the response length passes around 1k characters then it is cut at weird lengths: 424, 936 or 1448 characters.
Response is generated correctly but then it is cut so if the body was ...
4
votes
1
answer
175
views
TaskWait, SocketObject, and WolframScript
I want to launch an asynchronous task with Wolfram Script to listen to a socket and print back information in the CLI. This was handled in previous versions by ...
1
vote
0
answers
78
views
SocketConnect Options
I have a SocketConnection which fails every so often and I can't seem to find a way to reduce the default timeout. I did try TimeConstrained but that seems not to work consistently for network ...
11
votes
1
answer
530
views
WriteString to TCP socket appears to be broken in Mathematica 12.3
I have a large codebase in which some functions make calls to Python TCP servers. The code used to work perfectly in Mathematica 12.2, but has not worked since I ...
4
votes
0
answers
129
views
Socket not ready but data is available
Background
I am playing with https://github.com/arnoudbuzing/wolfram-server and I faced problems with requests that are slightly longer. I tried to narrow it down here.
Problem
This could be my ...
3
votes
0
answers
65
views
WriteString to socket takes long pauses in the middle of sending a string?
I use mysock = SocketConnect[...] to connect to a socket hosted by a c++ program.
Then, I send a string mystr to that socket via
...
4
votes
1
answer
218
views
How can I resubmit data to a SocketConnect object without creating a new socket?
I have a Python function that can be accessed over a TCP connection on port 1234. In Wolfram Language, I have the following code:
...
0
votes
0
answers
188
views
Wait for a socket message to be received?
Let's say I have a socket server set up on my system, and connect to it in Mathematica 11.3 via
mysock = SocketConnect["X.X.X.X:YYYYY"];
where ...
2
votes
0
answers
180
views
PUSH/PULL ZMQ Socket
I'm writing a PUSH/PULL ZMQ architecture. I've already written PUB/SUB where PUB binds in Python and sends data to SUB in Mathematica. However, I'd like to write a PUSH/PULL where both the socket ...
5
votes
1
answer
306
views
How to run a wolfram-server safely on a VPS as a backend of a webpage?
If one runs SocketListen on a Virtual Private Server (VPS), in principle one can set up a webpage with the Wolfram Language as a back-end.
For instance, with ...
11
votes
2
answers
359
views
How to show Plots or Graphics in mini MMA HTTP Server?
I learned some codes to make a mini HTTP server in MMA way here.
...
2
votes
0
answers
135
views
Cannot SocketListen on TCP client
The following code fails to work when I try to send a message from the server to the client.
...