[dhcp-agent-commits] dhcp-agent/src dhcp-libutil.h,1.30,1.31
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-07-17 13:18:40
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv2777/src Modified Files: dhcp-libutil.h Log Message: added new prototypes for tcp routines and new fork_and_exec Index: dhcp-libutil.h =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-libutil.h,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** dhcp-libutil.h 17 Jul 2003 00:21:38 -0000 1.30 --- dhcp-libutil.h 17 Jul 2003 13:18:37 -0000 1.31 *************** *** 313,316 **** --- 313,317 ---- extern void go_background(char *dir); extern void setup_interrupt_handlers(void); + extern int fork_and_exec(const char *path_to_exec); /* udp socket routines. */ *************** *** 319,322 **** --- 320,325 ---- extern size_t udp_sock_recv(int sd, uint8_t *buff, size_t buffsize, ip_addr_t *src_addr); extern int udp_sock_send(int udp_sock, uint8_t *msg, size_t size, ip_addr_t dst_addr, uint16_t dest_port); + extern char *tcp_sock_read_line(int sock); + extern int tcp_sock_write_line(int sock, const char *line); /* constants. */ |