Merge pull request #1898 from eddylin83/master

fix at socket issue
This commit is contained in:
Bernard Xiong 2018-10-15 18:31:48 +08:00 committed by GitHub
commit f763f8e728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -655,6 +655,10 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
{
timeout = RT_WAITING_FOREVER;
}
else
{
timeout = rt_tick_from_millisecond(timeout);
}
while (1)
{
@ -1161,7 +1165,7 @@ void at_freeaddrinfo(struct addrinfo *ai)
}
}
void at_scoket_device_register(const struct at_device_ops *ops)
void at_socket_device_register(const struct at_device_ops *ops)
{
RT_ASSERT(ops);
RT_ASSERT(ops->at_connect);

View File

@ -129,7 +129,7 @@ int at_getaddrinfo(const char *nodename, const char *servname, const struct addr
void at_freeaddrinfo(struct addrinfo *ai);
struct at_socket *at_get_socket(int socket);
void at_scoket_device_register(const struct at_device_ops *ops);
void at_socket_device_register(const struct at_device_ops *ops);
#ifndef RT_USING_SAL