mirror of
https://github.com/CPunch/Laika.git
synced 2026-02-01 14:20:04 +00:00
First actual runnable version
- many warnings & bug fixes - added bot/ source
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#ifndef LAIKA_SOCKET_H
|
||||
#define LAIKA_SOCKET_H
|
||||
|
||||
|
||||
/* socket/winsock headers */
|
||||
#ifdef _WIN32
|
||||
/* windows */
|
||||
@@ -62,7 +66,7 @@ struct sLaika_socket {
|
||||
int inCount;
|
||||
int outCap;
|
||||
int inCap;
|
||||
bool flipEndian
|
||||
bool flipEndian;
|
||||
};
|
||||
|
||||
#define laikaS_isAlive(arg) (arg->sock != INVALID_SOCKET)
|
||||
@@ -95,4 +99,6 @@ void laikaS_readInt(struct sLaika_socket *sock, void *buf, size_t sz); /* reads
|
||||
void laikaS_writeInt(struct sLaika_socket *sock, void *buf, size_t sz); /* writes INT, respecting endianness */
|
||||
|
||||
RAWSOCKCODE laikaS_rawRecv(struct sLaika_socket *sock, size_t sz, int *processed);
|
||||
RAWSOCKCODE laikaS_rawSend(struct sLaika_socket *sock, size_t sz, int *processed);
|
||||
RAWSOCKCODE laikaS_rawSend(struct sLaika_socket *sock, size_t sz, int *processed);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user