added raw_ping and printf-like putsock
[NeonServV5.git] / ClientSocket.h
index dd8df540a02e437ecb4e578ac4ca1fd3ca6c0c7e..55f4625784b3a25bf34b5ffbd541c6574f9d6752 100644 (file)
@@ -3,9 +3,9 @@
 
 #include "main.h"
 
-#define SOCKET_FLAG_DEAD 0x01;
-#define SOCKET_FLAG_CONNECTED 0x02;
-#define SOCKET_FLAG_READY 0x04;
+#define SOCKET_FLAG_DEAD 0x01
+#define SOCKET_FLAG_CONNECTED 0x02
+#define SOCKET_FLAG_READY 0x04
 
 #define BUF_SIZ 512
 
@@ -29,5 +29,6 @@ int connect_socket(struct ClientSocket *client);
 int close_socket(struct ClientSocket *client);
 int write_socket(struct ClientSocket *client, char* msg, int len);
 void socket_loop(int timeout_seconds);
+void putsock(struct ClientSocket *client, const char *text, ...) PRINTF_LIKE(1, 2);
 
 #endif
\ No newline at end of file