Add socket and message.
[cascardo/f2fchat.git] / friend.h
index 844e196..3c70741 100644 (file)
--- a/friend.h
+++ b/friend.h
 #ifndef _FRIEND_H
 #define _FRIEND_H
 
+#include <stdlib.h>
+
+int sock_init(void);
+
 struct friend;
 struct cache;
 int create_cache(struct cache **cache);
@@ -27,4 +31,6 @@ int cache_add_friend(struct cache *cache, char *friend, char *address, char *por
 int load_cache(struct cache *cache, char *fname);
 int store_cache(struct cache *cache, char *fname);
 
+int friend_send_message(struct friend *friend, char *buffer, size_t len);
+
 #endif