simh-testsetgenerator/H316
Mark Pizzolato 1fb209c275 SOCKETS: Cleanup, simplify and extend the sim_sock API set.
Cleanup/Simplification by:
	1) removing irrelevant master flag variable from sim_close_sock and thus sim_err_sock
	2) change previous boolean feature arguments (datagram, nodelay, reuseaddr) to flag bits in a single option argument.  This allows for features to be added by new flag bits which don't change the calling signatures.
	3) changed all status returns to be int (vs t_stat) with success being 0 and error being -1
	4) removed unneeded simh specific type references to allow sim_sock to be used by n
Extended API by providing flags to influence socket setup/behavior:
	SIM_SOCK_OPT_REUSEADDR	Retains prior behavior when sim_switches had -U set
	SIM_SOCK_OPT_DATAGRAM	UDP socket setup provided for when prior datagram argument was specified
	SIM_SOCK_OPT_NODELAY		TCP Nagle disable provided for when prior nodelay argument was specified
	SIM_SOCK_OPT_BLOCKING	Blocking socket mode (detault is non blocking)
2015-02-11 09:41:18 -08:00
..
tests Compiler indicated cleanups 2014-01-06 13:14:16 -08:00
h316_cpu.c ALL: make sure all useful state is in simh registers while processing events 2015-01-15 12:37:07 -08:00
h316_defs.h Compiler indicated cleanups 2014-01-06 13:14:16 -08:00
h316_dp.c More General cleanup migrate to using sim_printf vs separate calls to printf and fprintf(sim_log). 2014-10-24 14:37:37 -07:00
h316_fhd.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_hi.c Cleanup of unneeded global extern declarations 2014-10-10 08:18:15 -07:00
h316_imp.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_imp.h H316: Rewrote h316_udp to use TMXR lines for UDP transport of data. Changed h316_mi to leverage built-in loopback mode in TMXR. 2013-11-26 13:30:11 -08:00
h316_lp.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_mi.c Cleanup of unneeded global extern declarations 2014-10-10 08:18:15 -07:00
h316_mt.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_rtc.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_stddev.c More General cleanup migrate to using sim_printf vs separate calls to printf and fprintf(sim_log). 2014-10-24 14:37:37 -07:00
h316_sys.c H316: Resurrecting the ARPAnet IMP (from Bob Armstrong) 2013-11-23 08:40:26 -08:00
h316_udp.c SOCKETS: Cleanup, simplify and extend the sim_sock API set. 2015-02-11 09:41:18 -08:00