gen-tcp
Messages using gen_tcp:send doesn't get sent until the socket is closed
I want to write a simple client that sends a message to a server and receives a response. I\'ve got a server that broadcasts the same message to all connected clients and its working when I\'m testing[详细]
2023-04-04 02:39 分类:问答gen_server closing listening socket
What I\'m trying to do is have a gen_server process accept a new client and immediately spawn a new child to handle the next one.The issue that I\'m seeing is that when the socket is finished and cons[详细]
2023-04-01 23:08 分类:问答Looking for a simple ssl erlang example
In the book Erlang Programming one of the exercises proposed was to print on screen the request coming from a browser using gen_tcp. I made it for http requests as follows:[详细]
2023-03-22 21:30 分类:问答Erlang: Sending on a closed connection
If a client connects to a server over a normal tcp connection, and then later on the client\'s connection cuts out, the server will get (assuming active mode) {tcp_closed,Socket}. But there are cases[详细]
2023-02-23 08:39 分类:问答gen_tcp smushed messages [duplicate]
This question already has answers here: Erlang server, Java client - TCP messages get split? (3 answers)[详细]
2023-01-25 09:20 分类:问答Erlang missing messages
I\'m running the following code with dbg:p(client, r): -module(client). -export([start/0, start/2, send/1, net_client/1]).[详细]
2023-01-25 01:05 分类:问答WPF databind Image.Source in MVVM
I\'m using MVVM and am trying to databind the Source property of Image to my ViewModel in such a way that I can change the icon on the fly. What is the best pattern to follow for this? I still have th[详细]
2022-12-24 04:17 分类:问答