masayuki2009 opened a new pull request #1046:
URL: https://github.com/apache/incubator-nuttx/pull/1046


   ## Summary
   
   - This PR adds getsockname() support to gs2200m driver to be used for ftpd 
and ftpc.
   - This PR consists of 3 commits.
   - The first commit adds gs2200m_get_cstatus() and gs2200m_ioctl_name() to 
get socket address information specified from userland (i.g. gs2200m daemon)
   - The second commit fixes gs2200m_ioctl_bind() logic which supports port=0 
case (In this case, the driver has to assign a new port automatically) Also, I 
refactored a similar logic in gs2200m_ioctl_send() which was used in case of 
udp without calling connect().
   - The last one is defconfig wihch adds ftpc as well as ftpd. In this 
defconfig, I had to change lpthread's priority to higher (i.e. 60) than gs2200m 
daemon's (i.e. 50) to avoid an error in getsockname() call just after connect() 
call.
   
   ## Impact
   
   - This PR affects gs2200m driver only. Specifically getsockname() and 
sendto() for udp.
   
   ## Testing
   
   - To test this PR, we need another PR for app repository which I will send 
later.
   - I tested this PR with spresense:wifi (ftpd, ftpc, telnetd, webserver, 
tcpserver, udpblaster and so on)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to