projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
connection debug on text client
[citadel.git]
/
textclient
/
src
/
citadel_ipc.c
diff --git
a/textclient/src/citadel_ipc.c
b/textclient/src/citadel_ipc.c
index 1992ee8eb81b6f694f8a10698be3a57345d5aa5f..f1722f71b0bcb245bf110815b608f627e18e26a8 100644
(file)
--- a/
textclient/src/citadel_ipc.c
+++ b/
textclient/src/citadel_ipc.c
@@
-3335,6
+3335,7
@@
CtdlIPC* CtdlIPC_new(int argc, char **argv, char *hostbuf, char *portbuf)
else {
snprintf(sockpath, sizeof sockpath, "%s/%s", citport, "citadel.socket");
}
else {
snprintf(sockpath, sizeof sockpath, "%s/%s", citport, "citadel.socket");
}
+ printf("[%s]\n", sockpath);
ipc->sock = uds_connectsock(&(ipc->isLocal), sockpath);
if (ipc->sock == -1) {
ifree(ipc);
ipc->sock = uds_connectsock(&(ipc->isLocal), sockpath);
if (ipc->sock == -1) {
ifree(ipc);
@@
-3347,6
+3348,7
@@
CtdlIPC* CtdlIPC_new(int argc, char **argv, char *hostbuf, char *portbuf)
return ipc;
}
return ipc;
}
+ printf("[%s:%s]\n", cithost, citport);
ipc->sock = tcp_connectsock(cithost, citport);
if (ipc->sock == -1) {
ifree(ipc);
ipc->sock = tcp_connectsock(cithost, citport);
if (ipc->sock == -1) {
ifree(ipc);