Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / ircd_osdep.h
index db9b023df2bc00e6f2475852871284ac5fc584c5..981b902ceb533dbd172d48677c061f4dbc7911d9 100644 (file)
@@ -8,6 +8,7 @@
 
 struct Client;
 struct sockaddr_in;
+struct MsgQ;
 
 typedef enum IOResult {
   IO_FAILURE = -1,
@@ -31,6 +32,8 @@ extern IOResult os_recv_nonb(int fd, char* buf, unsigned int length,
                         unsigned int* length_out);
 extern IOResult os_send_nonb(int fd, const char* buf, unsigned int length,
                         unsigned int* length_out);
+extern IOResult os_sendv_nonb(int fd, struct MsgQ* buf,
+                             unsigned int* len_in, unsigned int* len_out);
 extern IOResult os_recvfrom_nonb(int fd, char* buf, unsigned int len,
                                  unsigned int* length_out,
                                  struct sockaddr_in* from_out);
@@ -40,6 +43,7 @@ extern int os_set_listen(int fd, int backlog);
 extern int os_set_nonblocking(int fd);
 extern int os_set_reuseaddr(int fd);
 extern int os_set_sockbufs(int fd, unsigned int size);
+extern int os_set_tos(int fd,int tos);
 
 #endif /* INCLUDED_ircd_osdep_h */