Author: adrian.chadd
Date: Sun Jul 5 20:44:16 2009
New Revision: 14135
Modified:
wiki/LuscaArchitectureNetworkConnectingToRemoteHosts.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/LuscaArchitectureNetworkConnectingToRemoteHosts.wiki
==============================================================================
--- wiki/LuscaArchitectureNetworkConnectingToRemoteHosts.wiki (original)
+++ wiki/LuscaArchitectureNetworkConnectingToRemoteHosts.wiki Sun Jul 5
20:44:16 2009
@@ -6,7 +6,20 @@
= Details =
-= Shortcomings =
+The caller begins by creating a socket with comm_open() / comm_open6().
That takes care of the socket creation, setting flags and setting up the
local address.
+
+A call to commConnectStart() begins the connect process.
+
+{{{
+void
+commConnectStart(int fd, const char *host, u_short port, CNCB * callback,
void *data, struct in_addr *addr)
+}}}
- * Handling the retry is noble. Handling the retry when the opaque
structure being passed in as the "state" anchor is a fildescriptor - not
noble. A whole lot of crap goes on in commResetFD() to create a new
filedescriptor and "dup" the socket state from the previous file descriptor
onto it. This includes the original local IP and port; and -must- therefore
retry the TPROXY related stuff.
+ * "host" is a DNS name to resolve, or NULL if "addr" is to be used to
specify the remote host
+ * "port" is the remote port to connect to
+ * "callback" and "data" form the callback to be performed on completion
or error. Note the callback data must be allocated via the cbdata framework.
+ * "addr" is the remote host address to connect to (overriding "host"),
or NULL
+
+= Shortcomings =
+ * Handling the retry is noble. Handling the retry when the opaque
structure being passed in as the "state" anchor is a fildescriptor - not
noble. A whole lot of crap goes on in commResetFD() to create a new
filedescriptor and "dup" the socket state from the previous file descriptor
onto it. This includes the original local IP and port; and -must- therefore
retry the TPROXY related stuff.
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---