Skip to content

Commit 4bcf887

Browse files
authored
Merge pull request #24 from sundxu/master
fix misspelling
2 parents 80ea54a + e4f9a1f commit 4bcf887

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

webserver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void WebServer::deal_timer(util_timer *timer, int sockfd)
197197
LOG_INFO("close fd %d", users_timer[sockfd].sockfd);
198198
}
199199

200-
bool WebServer::dealclinetdata()
200+
bool WebServer::dealclientdata()
201201
{
202202
struct sockaddr_in client_address;
203203
socklen_t client_addrlength = sizeof(client_address);
@@ -395,7 +395,7 @@ void WebServer::eventLoop()
395395
//处理新到的客户连接
396396
if (sockfd == m_listenfd)
397397
{
398-
bool flag = dealclinetdata();
398+
bool flag = dealclientdata();
399399
if (false == flag)
400400
continue;
401401
}
@@ -431,4 +431,4 @@ void WebServer::eventLoop()
431431
timeout = false;
432432
}
433433
}
434-
}
434+
}

webserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class WebServer
3838
void timer(int connfd, struct sockaddr_in client_address);
3939
void adjust_timer(util_timer *timer);
4040
void deal_timer(util_timer *timer, int sockfd);
41-
bool dealclinetdata();
41+
bool dealclientdata();
4242
bool dealwithsignal(bool& timeout, bool& stop_server);
4343
void dealwithread(int sockfd);
4444
void dealwithwrite(int sockfd);

0 commit comments

Comments
 (0)