mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
26 lines
455 B
C++
26 lines
455 B
C++
/*
|
|
* predixy - A high performance and full features proxy for redis.
|
|
* Copyright (C) 2017 Joyield, Inc. <joyield.com@gmail.com>
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef _PREDIXY_ACCEPT_SOCKET_H_
|
|
#define _PREDIXY_ACCEPT_SOCKET_H_
|
|
|
|
#include "Socket.h"
|
|
|
|
class AcceptSocket : public Socket
|
|
{
|
|
public:
|
|
AcceptSocket(int fd, sockaddr* addr, socklen_t len);
|
|
const char* peer() const
|
|
{
|
|
return mPeer;
|
|
}
|
|
private:
|
|
char mPeer[32];
|
|
};
|
|
|
|
|
|
#endif
|