Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rtmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ PILI_RTMP_Connect(PILI_RTMP *r, PILI_RTMPPacket *cp, RTMPError *error)
memset(&service, 0, sizeof(struct sockaddr_in));
service.sin_family = AF_INET;

int t0 = PILI_RTMP_GetTime();
if (r->Link.socksport)
{
/* Connect via SOCKS */
Expand All @@ -1052,6 +1053,7 @@ PILI_RTMP_Connect(PILI_RTMP *r, PILI_RTMPPacket *cp, RTMPError *error)
return FALSE;
}
}
conn_time.dns_time = PILI_RTMP_GetTime() - t0;
r->ip = service.sin_addr.s_addr;
int t1 = PILI_RTMP_GetTime();
if (!PILI_RTMP_Connect0(r, (struct sockaddr *)&service, error))
Expand Down
1 change: 1 addition & 0 deletions rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ extern "C"
{
uint32_t connect_time;
uint32_t handshake_time;
uint32_t dns_time;
}PILI_CONNECTION_TIME;

typedef void (*PILI_RTMP_ConnectionTimeCallback)(PILI_CONNECTION_TIME* conn_time, void *userData);
Expand Down