mirror of
https://github.com/lxsang/ant-http
synced 2025-07-15 05:19:55 +02:00
remove un neccessary code
This commit is contained in:
@ -216,13 +216,13 @@ void set_nonblock(int socket) {
|
||||
//assert(flags != -1);
|
||||
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
|
||||
}
|
||||
void set_block()
|
||||
/*void set_block()
|
||||
{
|
||||
int flags;
|
||||
flags = fcntl(socket,F_GETFL,0);
|
||||
//assert(flags != -1);
|
||||
fcntl(socket, F_SETFL, flags & (~O_NONBLOCK));
|
||||
}
|
||||
}*/
|
||||
int antd_close(void* src)
|
||||
{
|
||||
if(!src) return -1;
|
||||
|
@ -65,7 +65,7 @@ typedef struct {
|
||||
#endif
|
||||
}config_t;
|
||||
void set_nonblock(int socket);
|
||||
void set_block(int socket);
|
||||
//void set_block(int socket);
|
||||
int response(void*, const char*);
|
||||
void ctype(void*,const char*);
|
||||
void redirect(void*,const char*);
|
||||
|
Reference in New Issue
Block a user