rename packet_io_loop to stellar_event_base_loop
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
#include "http.h"
|
||||
#include "session_manager.h"
|
||||
|
||||
int http_decoder(const struct session *s, int what, struct packet *p, const char *payload, uint32_t len, void **pme)
|
||||
int http_decoder(const struct stellar_session *s, int what, struct stellar_packet *p, const char *payload, uint32_t len, void **pme)
|
||||
{
|
||||
void *info;
|
||||
struct session *new_session=session_manager_session_derive(s, SESSION_TYPE_HTTP);
|
||||
struct stellar_session_event_extras *info;
|
||||
struct stellar_session *new_session=session_manager_session_derive(s, "HTTP");
|
||||
session_manager_trigger_event(new_session, SESSION_EVENT_OPENING, info);
|
||||
session_manager_trigger_event(new_session, SESSION_EVENT_META, info);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int http_peek(const struct session *s, const char *payload, uint32_t len)
|
||||
int http_peek(const struct stellar_session *s, const char *payload, uint32_t len)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user