A phase I/II trial
Introduction =====
Saudi Arabian Crow
Q: How can I make
Q: How does the R
Introduction =====
Pirates Selling F
Recommendation sys
The invention rela

{ "name": "react
Facing the Future
The present invent
A new system, know
The present invent
The present invent
Q: How can I run
A comparative stud
The National Democ
The present invent
/* * Copyright (C) 2009 Mamadou Diop. * * Contact: Mamadou Diop * * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with DOUBANGO. * */ #ifndef TNET_PEER_SESSION_H #define TNET_PEER_SESSION_H #include "tnet_defs.h" typedef void *tnet_peer_id_t; int tnet_peer_id_gen(tnet_peer_id_t* peer); int tnet_peer_id_find(const char *uri, tnet_peer_id_t* peer); tnet_peer_id_t tnet_peer_id_get(const char *uri); void tnet_peer_id_destroy(tnet_peer_id_t peer); int tnet_peer_session_free(tnet_peer_id_t peer); int tnet_peer_session_free_all(void); #endif /* TNET_PEER_SESSION_H */ /* * Copyright (C) 2009 Mamadou Diop. * * Contact: Mamadou Diop * * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with DOUBANGO. * */ #ifdef __cplusplus extern "C" { #endif extern const char* TNET_API_UID; extern const char* TNET_API_SESSION_TYPE; extern tsk_bool_t TNET_API_SUPPORT_HTTP_FILE_SERVICE; extern tsk_bool_t TNET_API_SUPPORT_TCP; void tnet_peer_session_init(tnet_peer_session_t *self, const char* name, tsk_bool_t client_connection); int tnet_peer_session_start(tnet_peer_session_t* self, const char* sid, const char* sid_str); int tnet_peer_session_initiate(tnet_peer_session_t* self, const char* ssl_host, tsk_bool_t ssl_flag); int tnet_peer_session_client_initiate(tnet_peer_session_t* self, const char* ssl_host, tsk_bool_t ssl_flag); int tnet_peer_session_add_member(tnet_peer_session_t* self, const char* session_id, const char* session_id_str); int tnet_peer_session_dispose(tnet_peer_session_t* self); int tnet_peer_session_destroy(tnet_peer_session_t* self); const char* tnet_peer_session_get_sid(tnet_peer_session_t *self); const char* tnet_peer_session_get_session_id(tnet_peer_session_t *self); const char* tnet_peer_session_get_session_type(tnet_peer_session_t *self); const char* tnet_peer_session_get_name(tnet_peer_session_t *self); const char* tnet_peer_session_get_url(tnet_peer_session_t *self); const char* tnet_peer_session_get_port(tnet_peer_session_t *self); const char* tnet_peer_session_get_ssl_verify(tnet_peer_session_t *self); const char* tnet_peer_session_get_secure(tnet_peer_session_t *self); tnet_peer_id_t tnet_peer_session_get_id(tnet_peer_session_t* self); const char* tnet_peer_session_get_user(tnet_peer_session_t* self); const char* tnet_peer_session_get_real_user(tnet_peer_session_t* self); const char* tnet_peer_session_get_password(tnet_peer_session_t* self); const char* tnet_peer_session_get_secure_cookie(tnet_peer_session_t* self); const char* tnet_peer_session_get_sess_id(tnet_peer_session_t* self); const char* tnet_peer_session_get_proxy(tnet_peer_session_t* self); const char* tnet_peer_session_get_proxy_user(tnet_peer_session_t* self); const char* tnet_peer_session_get_realm(tnet_peer_session_t* self); const char* tnet_peer_session_get_ip(tnet_peer_session_t* self); const char* tnet_peer_session_get_host(tnet_peer_session_t* self); const char* tnet_peer_session_get_username(tnet_peer_session_t* self); const char* tnet_peer_session_get_screenname(tnet_peer_session_t* self); const char* tnet_peer_session_get_hostname(tnet_peer_session_t* self); const char* tnet_peer_session_get_country(tnet_peer_session_t* self); int tnet_peer_session_get_user_id(tnet_peer_session_t* self, tnet_user_id_t* user_id); int tnet_peer_session_get_user_domain(tnet_peer_session_t* self, tsk_bool_t* domain); int tnet_peer_session_get_real_user_domain(tnet_peer_session_t* self, tsk_bool_t* domain); const char* tnet_peer_session_get_host(tnet_peer_session_t* self); int tnet_peer_session_get_ip(tnet_peer_session_t* self, tnet_peer_id_t* ip); const char* tnet_peer_session_get_url(tnet_peer_session_t* self); const char* tnet_peer_session_get_query(tnet_peer_session_t* self); const char* tnet_peer_session_get_port(t