|
| int8_t | socket (uint8_t sn, uint8_t protocol, uint16_t port, uint8_t flag) |
| | Open a socket. More...
|
| |
| int8_t | close (uint8_t sn) |
| | Close a SOCKET. More...
|
| |
| int8_t | listen (uint8_t sn) |
| | Listen to a connection request from a TCP CLIENT. More...
|
| |
| int8_t | connect (uint8_t sn, uint8_t *addr, uint16_t port, uint8_t addrlen) |
| | Try to connect to a TCP SERVER. More...
|
| |
| int8_t | disconnect (uint8_t sn) |
| | Try to disconnect to the connected peer. More...
|
| |
| datasize_t | send (uint8_t sn, uint8_t *buf, datasize_t len) |
| | Send data to the connected peer. More...
|
| |
| datasize_t | recv (uint8_t sn, uint8_t *buf, datasize_t len) |
| | Receive data from the connected peer. More...
|
| |
| datasize_t | sendto (uint8_t sn, uint8_t *buf, datasize_t len, uint8_t *addr, uint16_t port, uint8_t addrlen) |
| | Send datagram to the peer specifed by destination IP address and port number passed as parameter. More...
|
| |
| datasize_t | recvfrom (uint8_t sn, uint8_t *buf, datasize_t len, uint8_t *addr, uint16_t *port, uint8_t *addrlen) |
| | Receive datagram from a peer. More...
|
| |
| int8_t | ctlsocket (uint8_t sn, ctlsock_type cstype, void *arg) |
| | Control SOCKETn. More...
|
| |
| int8_t | setsockopt (uint8_t sn, sockopt_type sotype, void *arg) |
| | Set SOCKETn options. More...
|
| |
| int8_t | getsockopt (uint8_t sn, sockopt_type sotype, void *arg) |
| | get SOCKETn options More...
|
| |
| int16_t | peeksockmsg (uint8_t sn, uint8_t *submsg, uint16_t subsize) |
| | Peeks a sub-message in SOCKETn RX buffer. More...
|
| |
SOCKET APIs Implements file.
SOCKET APIs like as Berkeley Socket APIs.
- Version
- 1.0.1
- Date
- 2020/04/27
- Revision history
- <2020/04/27> V1.0.1 Modify default value of tcmd to Sn_CR_SEND to send data in macrawmode and the condition of the if()when setting the destination port number. <2019/01/01> 1st Release
- Author
- MidnightCow
- Copyright
Copyright (c) 2019, WIZnet Co., LTD.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file socket.c.