# Poco::Net

# class TCPReactorServerConnection

Library:
Package:
Header: Poco/Net/TCPReactorServerConnection.h

## Inheritance

Direct Base Classes: std::enable_shared_from_this < TCPReactorServerConnection >

All Base Classes: std::enable_shared_from_this < TCPReactorServerConnection >

## Member Summary

Member Functions: buffer, handleClose, initialize, onError, onRead, onShutdown, setRecvMessageCallback, socket

## Constructors

### TCPReactorServerConnection

TCPReactorServerConnection(
StreamSocket socket,
SocketReactor & reactor
);

## Destructor

### ~TCPReactorServerConnection

~TCPReactorServerConnection();

## Member Functions

### buffer

std::string & buffer();

### handleClose

void handleClose();

### initialize

void initialize();

### onError

void onError(
const AutoPtr < ErrorNotification > & pNf
);

### onRead

void onRead(
const AutoPtr < ReadableNotification > & pNf
);

### onShutdown

void onShutdown(
const AutoPtr < ShutdownNotification > & pNf
);

### setRecvMessageCallback

void setRecvMessageCallback(
const RecvMessageCallback & cb
);

### socket

const StreamSocket & socket();