Skip to content

ServerDrv

詳細情報

メンバー

startServer()

void ServerDrv::startServer(uint16_t port, uint8_t sock, uint8_t protMode=TCP_MODE)

引数

  • uint16_t port
  • uint8_t sock
  • uint8_t protMode

startClient()

void ServerDrv::startClient(uint32_t ipAddress, uint16_t port, uint8_t sock, uint8_t protMode=TCP_MODE)

引数

  • uint32_t ipAddress
  • uint16_t port
  • uint8_t sock
  • uint8_t protMode

stopClient()

void ServerDrv::stopClient(uint8_t sock)

引数

  • uint8_t sock

getServerState()

uint8_t ServerDrv::getServerState(uint8_t sock)

引数

  • uint8_t sock

戻り値

uint8_t

getClientState()

uint8_t ServerDrv::getClientState(uint8_t sock)

引数

  • uint8_t sock

戻り値

uint8_t

getData()

bool ServerDrv::getData(uint8_t sock, uint8_t *data, uint8_t peek=0)

引数

  • uint8_t sock
  • uint8_t * data
  • uint8_t peek

戻り値

bool

getDataBuf()

bool ServerDrv::getDataBuf(uint8_t sock, uint8_t *data, uint16_t *len)

引数

  • uint8_t sock
  • uint8_t * data
  • uint16_t * len

戻り値

bool

insertDataBuf()

bool ServerDrv::insertDataBuf(uint8_t sock, const uint8_t *_data, uint16_t _dataLen)

引数

  • uint8_t sock
  • constuint8_t * _data
  • uint16_t _dataLen

戻り値

bool

sendData()

bool ServerDrv::sendData(uint8_t sock, const uint8_t *data, uint16_t len)

引数

  • uint8_t sock
  • constuint8_t * data
  • uint16_t len

戻り値

bool

sendUdpData()

bool ServerDrv::sendUdpData(uint8_t sock)

引数

  • uint8_t sock

戻り値

bool

availData()

uint16_t ServerDrv::availData(uint8_t sock)

引数

  • uint8_t sock

戻り値

uint16_t

checkDataSent()

uint8_t ServerDrv::checkDataSent(uint8_t sock)

引数

  • uint8_t sock

戻り値

uint8_t