1 # ${readsocket (Unix domain and IPv4)
5 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
6 2 ${if exists{DIR/test-socket}\
7 {>>${readsocket{DIR/test-socket}{QUERY-1\n}}<<}\
11 # Note the difference between:
12 # >*eof => close the connection
13 # *eof => expect to read EOF from client
15 server DIR/test-socket 9
41 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
42 2 >>${readsocket{DIR/test-socket}{QUERY-2\n}}<<
43 3 >>${readsocket{DIR/test-socket}{QUERY-3\n}{2s}{*EOL*}}<<
44 4 >>${readsocket{DIR/test-socket}{QUERY-4\n}{2s}{*EOL*}{sock error}}<<
45 5 >>${readsocket{DIR/test-socket}{}}<<
46 6 >>${readsocket{DIR/test-socket}{QUERY-6\n}}<<
47 7 >>${readsocket{DIR/test-socket}{QUERY-7\n}{1s}{}{sock error}}<<
48 8 >>${readsocket{DIR/test-socket}{QUERY-8\n}{1s}}<<
49 9 >>${readsocket{DIR/test-socket}{QUERY-9\n}{1s}{}{sock error}}<<
51 server DIR/test-socket
55 exim -odq -bs -oMa V4NET.0.0.0
59 # Tests of IPv4 sockets
93 1 >>${readsocket{inet:thisloop:PORT_S}{QUERY-1\n}}<<
94 2 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-2\n}}<<
95 3 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-3\n}{2s}{*EOL*}}<<
96 4 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-4\n}{2s}{*EOL*}{sock error}}<<
97 5 >>${readsocket{inet:127.0.0.1:PORT_S}{}}<<
98 6 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-6\n}}<<
99 7 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-7\n}{1s}{}{sock error}}<<
100 8 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-8\n}{1s}}<<
101 9 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-9\n}{1s}{}{sock error}}<<
102 10 >>${readsocket{inet:badloop:PORT_S}{QUERY-10\n}}<<
103 11 >>${readsocket{inet:thisloop:PORT_S}{QUERY-11\n}{2s:shutdown=no}}<<