/*
- * $Id: comm.cc,v 1.348 2002/10/21 15:13:23 adrian Exp $
+ * $Id: comm.cc,v 1.349 2002/10/23 09:17:34 adrian Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
void *handler_data;
} read;
struct {
- char *buf;
+ const char *buf;
int size;
int curofs;
IOCB *handler;
* completes, on error, or on file descriptor close.
*/
void
-comm_write(int fd, char *buf, size_t size, IOWCB *handler, void *handler_data)
+comm_write(int fd, const char *buf, size_t size, IOWCB *handler, void *handler_data)
{
/* Make sure we're not writing anything and we're not closing */
assert(fdc_table[fd].active == 1);
extern int comm_udp_recv(int fd, void *buf, size_t len, int flags);
extern ssize_t comm_udp_send(int s, const void *buf, size_t len, int flags);
-extern void comm_write(int s, char *buf, size_t len, IOWCB *callback, void *callback_data);
+extern void comm_write(int s, const char *buf, size_t len, IOWCB *callback, void *callback_data);
#endif