Commit a4a2ac5d authored by Günter Windau's avatar Günter Windau

added gethostbyname.m, fix for lsldert_pubclient hostname lookup

parent ffdfbbcf
import socket
import sys
def eval_srepr(srepr):
return eval(srepr);
def gethostbyname(hostname):
return socket.gethostbyname(hostname);
function ip=gethostbyname(hostname)
% GETHOSTBYNAME -- returns the IP address of HOSTNAME or an empty char
% array if it is not found
% Günter Windau 20200904
ip = char(py.socket.gethostbyname(hostname));
ip = '';
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment