svn commit: samba r7655 - in
branches/SAMBA_4_0/source/torture/local: .
tridge at samba.org
tridge at samba.org
Thu Jun 16 23:19:35 GMT 2005
Author: tridge
Date: 2005-06-16 23:19:35 +0000 (Thu, 16 Jun 2005)
New Revision: 7655
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7655
Log:
test the evnt friendly socket_connect() in the LOCAL-SOCKET test
Modified:
branches/SAMBA_4_0/source/torture/local/socket.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/socket.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/socket.c 2005-06-16 23:19:03 UTC (rev 7654)
+++ branches/SAMBA_4_0/source/torture/local/socket.c 2005-06-16 23:19:35 UTC (rev 7655)
@@ -22,6 +22,7 @@
#include "includes.h"
#include "lib/socket/socket.h"
+#include "lib/events/events.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
@@ -139,6 +140,7 @@
DATA_BLOB blob, blob2;
size_t sent, nread;
BOOL ret = True;
+ struct event_context *ev = event_context_init(mem_ctx);
printf("TESTING TCP SOCKETS\n");
@@ -162,7 +164,7 @@
srv_port = socket_get_my_port(sock1);
printf("server port is %d\n", srv_port);
- status = socket_connect(sock2, NULL, 0, srv_addr, srv_port, 0);
+ status = socket_connect_ev(sock2, NULL, 0, srv_addr, srv_port, 0, ev);
CHECK_STATUS(status, NT_STATUS_OK);
status = socket_accept(sock1, &sock3);
More information about the samba-cvs
mailing list