logo
down
shadow

ERLANG QUESTIONS

Is there any difference between `receive after` and `timer:sleep`?
Is there any difference between `receive after` and `timer:sleep`?
like below fixes the issue There is no difference between timer:sleep/1 and a hardcoded receive...after...end statement (how could it be? The former is defined as the latter).Also, according to the documentation of process_info/1, a process' status c
TAG : erlang
Date : November 18 2020, 09:01 AM , By : Bahia
Searching through lists of records with repeating elements
Searching through lists of records with repeating elements
wish help you to fix your issue You can use a list comprehension. Assuming your address book is stored in a variable named AddressBook, and the city you're matching is stored in a variable named City, the following will work:
TAG : erlang
Date : November 07 2020, 01:43 PM , By : uuu
Elixir errors using `inet_res` library
Elixir errors using `inet_res` library
help you fix your problem It's a race condition. You're requesting data from something that doesn't exist yet. At VM initialization inet_db needs to grab a list of resolvers. You're making that query before that process completes.To 'fast-track':
TAG : erlang
Date : October 31 2020, 10:01 AM , By : LADY C
Yaws - start of server from current directory
Yaws - start of server from current directory
it fixes the issue I know that can add set of docroot in yaws.conf but this not always convenient. Is exist way to start of server from current directory with yaws without modifying configuration file? , Two options:
TAG : erlang
Date : October 25 2020, 07:18 PM , By : masteroutcast
Erlang gen_udp not recieving broadcast when {ip,Address} specificed on Socket
Erlang gen_udp not recieving broadcast when {ip,Address} specificed on Socket
I hope this helps you . In order to get broadcast packets, you must bind socket to a broadcast address For example if you want get broadcasts to interface lo in a general UNIX setup, you can set Address to {127,255,255,255}:
TAG : erlang
Date : October 23 2020, 05:39 PM , By : madMingus
shadow
Privacy Policy - Terms - Contact Us © animezone.co