Check if client 0 is available
Inside a first_time only
Before creating socket.
After creating socket.
before malloc in create connection data
pointer: 00508FA0
Before assigning to connection_data struct.
Struct data: 2 260 0
Struct data: 2 260 0
After assigning to connection_data struct.
Setting up listening socket.
Binding socket.
Listening for SYN packet.
connection->sock_fd: 160
Before recvfrom() in listen socket.
Return_value: 1
After recvfrom().
Received string: herp 1 127.0.0.1 4982 11904 1 derp Files\Microsoft Shared\Windows Live;C:\Windowł
Converting from string to packet.
Inside string_to_packet.
Inside handshake case herp 1 127.0.0.1 4982 11904 1 derp Files\Microsoft Shared\Windows Live;C:\Windowł.
Packet: herp 11904 1 derp
ptr size 4
It is a handshake packet outside recv_data!
Content: herp 1 127.0.0.1 4982 1 derp
In is_packet, before switch: 1
is handshake?
Is a handshake!
SYN Packet received.
Preparing ACK packet.
Creating connection_data struct.
before malloc in create connection data
pointer: 00508FA0
Before assigning to connection_data struct.
Struct data: 2 30227 16777343
Struct data: 2 30227 16777343
After assigning to connection_data struct.
Converting packet_to_string.
Inside packet_to_string.
Inside handshake case.
herp 1 127.0.0.1 4982 1 2 derp
Sending ACK packet.
pointer address 00508FA0
Success to establish connection with client 1!
Client_id: 1, 0 last_seen_pkt[0] = 0
Inside packet_to_string.
Inside data case.
herp 2 0 1 3,2,noplayers derp
herp 2 0 1 3,2,noplayers derp
Client_id: 1, 0 last_seen_pkt[0] = 0
Inside packet_to_string.
Inside data case.
herp 2 1 1 3,2,noplayers derp
herp 2 1 1 3,2,noplayers derp
Client_id: 1, 0 last_seen_pkt[0] = 0
Inside packet_to_string.
Inside data case.
herp 2 2 1 3,2,noplayers derp
herp 2 2 1 3,2,noplayers derp
Client_id: 1, 0 last_seen_pkt[0] = 0
Inside packet_to_string.
Inside data case.
herp 2 3 1 3,2,noplayers derp
herp 2 3 1 3,2,noplayers derp
Client_id: 1, 0 last_seen_pkt[0] = 0
Inside packet_to_string.
Inside data case.
herp 2 4 1 3,2,noplayers derp
herp 2 4 1 3,2,noplayers derp
Check if client 1 is available
before malloc in create connection data
pointer: 00501048
Before assigning to connection_data struct.
Struct data: 2 260 0
Struct data: 2 260 0
After assigning to connection_data struct.
Listening for SYN packet.
connection->sock_fd: 160
Before recvfrom() in listen socket.
Return_value: 1
After recvfrom().
Received string: herp 2 0 1 1,quit derp
Listening for SYN packet.
connection->sock_fd: 160
Before recvfrom() in listen socket.
Return_value: 1
After recvfrom().
Received string: herp 1 3 4982 1 4 derp
Converting from string to packet.
Inside string_to_packet.
Inside handshake case herp 1 3 4982 1 4 derp.
Packet: herp 1 4 derp
ptr size 4
It is a handshake packet outside recv_data!
Content: herp 1 3 4982 4 derp
In is_packet, before switch: 1
is handshake?
Is a handshake!
In is_packet, before switch: 1
is handshake?
Is a handshake!
Terminating connection.
Preparing ACK packet for termination.
Converting to string.
Inside packet_to_string.
Inside ha