removed why2_register_connection function
This commit is contained in:
parent
fbaef61ebc
commit
736cd82240
@ -22,7 +22,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
void why2_send_socket(char *text, int socket); //send socket.... wtf did you expect
|
||||
char *why2_read_socket(int socket); //read lol
|
||||
void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD
|
||||
void why2_register_connection(int socket); //ADD SOCKET TO LIST
|
||||
void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS
|
||||
|
||||
#endif
|
@ -130,7 +130,7 @@ void *why2_communicate_thread(void *arg)
|
||||
{
|
||||
printf("User connected.\t%d\n", *((int*) arg));
|
||||
|
||||
why2_register_connection(*((int*) arg)); //TODO: Remove why2_register_connection if unused
|
||||
push_to_list(*((int*) arg));
|
||||
|
||||
const time_t startTime = time(NULL);
|
||||
char *received = NULL;
|
||||
@ -185,11 +185,6 @@ char *why2_read_socket(int socket)
|
||||
return content_buffer;
|
||||
}
|
||||
|
||||
void why2_register_connection(int socket)
|
||||
{
|
||||
push_to_list(socket); //SEND
|
||||
}
|
||||
|
||||
void *why2_accept_thread(void *socket)
|
||||
{
|
||||
int accepted;
|
||||
|
Loading…
x
Reference in New Issue
Block a user