]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/net/common/v2_0/doc/tcpip.sgml
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / net / common / v2_0 / doc / tcpip.sgml
index d6f91d074310e5a0de599e56c8c07b47c4a89146..8acf7fa0ff7be9f0dbd945884ac9d28fcb3ed99c 100644 (file)
@@ -425,21 +425,21 @@ IPv4 only.
 <PARA>
 The new API is as follows:
 </PARA>
-<PROGRAMLISTING>int tftp_client_get(char *filename,
-                   char *server,
-                   int port,
+<PROGRAMLISTING>int tftp_client_get(const char * const filename,
+                   const char * const server,
+                   const int port,
                    char *buf,
                    int len,
-                   int mode,
-                   int *err);
+                   const int mode,
+                   int * const err);
 
-int tftp_client_put(char *filename,
-                   char *server,
-                   int port,
-                   char *buf,
+int tftp_client_put(const char * const filename,
+                   const char * const server,
+                   const int port,
+                   const char *buf,
                    int len,
-                   int mode,
-                   int *err);
+                   const int mode,
+                   int *const err);
 </PROGRAMLISTING>
 <PARA>Currently <varname>server</varname> can only be a numeric IPv4 or
 IPv6 address. The resolver is currently not used, but it is planned to
@@ -449,19 +449,20 @@ the specified port is used.
 </PARA>
 <PARA> 
 The deprecated API is:
-<PROGRAMLISTING>int tftp_client_get(char *filename,
-                   struct sockaddr_in *server,
-                   char *buf,
-                   int len,
-                   int mode,
-                   int *err);
+<PROGRAMLISTING>
+int tftp_get(const char * const filename, 
+             const struct sockaddr_in * const server, 
+             char * buf, 
+             int len, 
+             const int mode, 
+             int * const error);
 
-int tftp_client_put(char *filename,
-                   struct sockaddr_in *server,
-                   char *buf,
-                   int len,
-                   int mode,
-                   int *err);
+int tftp_put(const char * const filename, 
+             const struct sockaddr_in * const server, 
+             const char * buffer, 
+             int len, 
+             const int mode, 
+             int * const err);
 </PROGRAMLISTING>
 </PARA>
 <PARA>