Jump to main content

##

# TCPIP_TCP_Put Function

## C

    uint16_t TCPIP_TCP_Put(
        TCP_SOCKET hTCP,
        uint8_t byte
    );

## Description

Writes a single byte to a TCP socket.

## Preconditions

TCP socket should have been opened with TCPIP_TCP_ServerOpen()/TCPIP_TCP_ClientOpen(). hTCP - valid socket.

## Parameters

Parameters | Description
--- | ---
hTCP | The socket to which data is to be written.
byte | The byte to write.

## Returns

None.

## Remarks

Note that this function is inefficient and its use is discouraged. A buffered approach (TCPIP_TCP_ArrayPut) is preferred.