comparison src/protocols/novell/nmconn.h @ 8874:a2affcdf8e01

[gaim-migrate @ 9643] "This patch fixes the Novell protocol plugin on big endian platforms (Bug #947017). It also includes a fix for disconnects when sending large messages." --Mike Stoddard (novell) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 05 May 2004 20:29:21 +0000
parents 046dd8ef2920
children 6663ad2386d9
comparison
equal deleted inserted replaced
8873:82f0d88ada18 8874:a2affcdf8e01
108 * @return NM_OK on success, NMERR_TCP_READ if read fails. 108 * @return NM_OK on success, NMERR_TCP_READ if read fails.
109 */ 109 */
110 NMERR_T nm_read_all(NMConn * conn, char *buf, int len); 110 NMERR_T nm_read_all(NMConn * conn, char *buf, int len);
111 111
112 /** 112 /**
113 * Read a 32 bit value and convert it to the host byte order.
114 *
115 * @param conn The connection to read from.
116 * @param val A pointer to unsigned 32 bit integer
117 *
118 * @return NM_OK on success, NMERR_TCP_READ if read fails.
119 */
120 NMERR_T
121 nm_read_uint32(NMConn *conn, guint32 *val);
122
123 /**
124 * Read a 16 bit value and convert it to the host byte order.
125 *
126 * @param conn The connection to read from.
127 * @param val A pointer to unsigned 16 bit integer
128 *
129 * @return NM_OK on success, NMERR_TCP_READ if read fails.
130 */
131 NMERR_T
132 nm_read_uint16(NMConn *conn, guint16 *val);
133
134 /**
113 * Dispatch a request to the server. 135 * Dispatch a request to the server.
114 * 136 *
115 * @param conn The connection. 137 * @param conn The connection.
116 * @param cmd The request to dispatch. 138 * @param cmd The request to dispatch.
117 * @param fields The field list for the request. 139 * @param fields The field list for the request.