--- l2_test.c 2001/09/06 11:56:15 1.13
+++ l2_test.c 2001/09/06 19:29:44 1.14
@@ -78,23 +78,22 @@
/* Atenzione! Before doing any socket testing, make sure you have a valid */
/* end point listening, or else you will only get an error message when */
/* the thing tries to connect. */
-/* if ((chSock = l2_channel_create(&l2_handler_socket)) == NULL)
+ if ((chSock = l2_channel_create(&l2_handler_socket)) == NULL)
die("failed to create socket channel");
- if (l2_channel_configure(chSock, "ipversion,host,port", AF_INET,\
- "localhost", 2002) != L2_OK)
+ if (l2_channel_configure(chSock, "protocol,ipversion,host,port",\
+ IPPROTO_UDP, AF_INET, "localhost", 2002) != L2_OK)
die("failed to configure socket ipv4 channel");
- if (l2_channel_configure(chSock, "ipversion,host,port", AF_INET6,\
- "0123:4567:4455:6677:8899:AABB:9876:5432", 2002) != L2_OK)
- die("failed to configure socket ipv6 channel");
+// if (l2_channel_configure(chSock, "protocol,ipversion,host,port",\
+// IPPROTO_TCP, AF_INET6, "0:0:0:0:0:0:0:1", 2002) != L2_OK)
+// die("failed to configure socket ipv6 channel");
if (l2_channel_open(chSock) != L2_OK)
die("failed to open socket channel");
if (l2_stream_channel(st, chSock, L2_LEVEL_UPTO(L2_LEVEL_WARNING)) != L2_OK)
die("failed to attach first channel into stream");
-*/
if ((chPrefix = l2_channel_create(&l2_handler_prefix)) == NULL) /* Prefix */
die("failed to create prefix channel");
|