mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-17 11:40:13 -08:00
linux_socket: checkpoint, get accepting/receiving working
This commit is contained in:
1 parent
50b61822a8
commit
b5c02dd4fa
7 files changed
+272
-17
No files matched your search
@@ -79,12 +79,10 @@ internal void sock_session_close(SOCK_Session session);
|
||||
//~ rjf: @per_os_impl Sends
|
||||
|
||||
internal B32 sock_send(SOCK_Session session, SOCK_Protocol protocol, SOCK_Endpoint endpoint, String8 data, U64 endt_us);
|
||||
#define sock_send_struct(session, protocol_in, endpoint_in, ptr, endt_us) sock_send((session), (protocol_in), (endpoint_in), str8_struct(ptr), (endt_us))
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: @per_os_impl Receives
|
||||
|
||||
internal B32 sock_recv(Arena *arena, SOCK_Session session, SOCK_Protocol *protocol_out, SOCK_Endpoint *endpoint_out, String8 *data_out, U64 endt_us);
|
||||
#define sock_recv_struct(arena, session, protocol_out, endpoint_out, data_out, endt_us) sock_recv((arena), (session), (protocol_out), (endpoint_out), (data_out), (endt_us))
|
||||
|
||||
#endif // SOCKET_H
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "socket.c"
|
||||
#if OS_WINDOWS
|
||||
# include "win32/socket/win32_socket.c"
|
||||
#elif OS_LINUX
|
||||
# include "linux/socket/linux_socket.c"
|
||||
#else
|
||||
# include "socket_stub.c"
|
||||
#endif
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "socket.h"
|
||||
#if OS_WINDOWS
|
||||
# include "win32/socket/win32_socket.h"
|
||||
#elif OS_LINUX
|
||||
# include "linux/socket/linux_socket.h"
|
||||
#else
|
||||
# include "socket_stub.h"
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user