Mercurial
comparison seobeo/seobeo.h @ 5:3e12bf044589
Fixed Dowa hashmap to recursively add files into memory.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 27 Sep 2025 16:23:04 -0700 |
| parents | 0b3b4f5887bb |
| children | 1e61008b9980 |
comparison
equal
deleted
inserted
replaced
| 4:0b3b4f5887bb | 5:3e12bf044589 |
|---|---|
| 41 void *text_copy; | 41 void *text_copy; |
| 42 char *file_name; | 42 char *file_name; |
| 43 } Sebeo_Handle, *Seobeo_PHandle; | 43 } Sebeo_Handle, *Seobeo_PHandle; |
| 44 | 44 |
| 45 | 45 |
| 46 // --- Internal? --- // | 46 // --- Socket, IP related --- // |
| 47 extern int Seobeo_CreateSocket(int32 stream, const char *host, const char* port, int32 backlog); | 47 extern int Seobeo_CreateSocket(int32 stream, const char *host, const char* port, int32 backlog); |
| 48 extern void *Seobeo_GetIP4OrIP6(struct sockaddr *sa); | 48 extern void *Seobeo_GetIP4OrIP6(struct sockaddr *sa); |
| 49 | 49 |
| 50 // --- TCP --- // | 50 // --- TCP --- // |
| 51 extern Seobeo_PHandle Seobeo_Stream_Handle_Create(const char *host, const char* port); | 51 extern Seobeo_PHandle Seobeo_Stream_Handle_Create(const char *host, const char* port); |
| 52 extern Seobeo_PHandle Seobeo_Stream_Handle_Accept(Seobeo_PHandle server_h); | 52 extern Seobeo_PHandle Seobeo_Stream_Handle_Accept(Seobeo_PHandle server_h); |
| 53 | |
| 54 // --- Helper functions --- // | |
| 53 extern void Seobeo_Handle_Destroy(Seobeo_PHandle h); | 55 extern void Seobeo_Handle_Destroy(Seobeo_PHandle h); |
| 54 extern int Seobeo_Handle_Flush(Seobeo_PHandle h); | 56 extern int Seobeo_Handle_Flush(Seobeo_PHandle h); |
| 55 extern int Seobeo_Handle_QueueData(Seobeo_PHandle h, const uint8_t *data, uint32_t data_size); | 57 extern int Seobeo_Handle_QueueData(Seobeo_PHandle h, const uint8_t *data, uint32_t data_size); |
| 56 | 58 |
| 57 | |
| 58 #endif | 59 #endif |