Re: [lwip-users] access to tcp_pcb data from socket+

2018-03-07 Thread Joel Cunningham
On 03/07/2018 04:05 AM, Mattia Settin wrote: Hi For example I need to check the send buffer size (e.i. SO_SNDBUF) which is not implemented options. Regards Setting the send buffer size at run-time is not supported. We have a compile time setting TCP_SND_BUF for that.  Are you wanting to onl

Re: [lwip-users] access to tcp_pcb data from socket+

2018-03-07 Thread Mattia Settin
Hi For example I need to check the send buffer size (e.i. SO_SNDBUF) which is not implemented options. Regards On Wed, Mar 7, 2018 at 10:55 AM, Mattia Settin wrote: > Hi > Yes you are right but I don't need to touch the pcb, just some check on > the pcb. > getpeername stores the address of the

Re: [lwip-users] access to tcp_pcb data from socket+

2018-03-07 Thread Mattia Settin
Hi Yes you are right but I don't need to touch the pcb, just some check on the pcb. getpeername stores the address of the peer that is connected socket (it dosen't return the pcb structure). Which is the api for retrive the connection tcp data for a certain socket ? Thanks reagards m On Wed, Mar

Re: [lwip-users] access to tcp_pcb data from socket+

2018-03-07 Thread Jens Nielsen
Hi The short answer is: don't. If you're using the socket api you're not touching the pcb. What do you really want to do?  There are basically two options here a) Just like your question about getpeername, there's an api for that. Google is your friend. or b) Since the beginning of time peo

[lwip-users] access to tcp_pcb data from socket+

2018-03-07 Thread Mattia Settin
Dear all I developing an application wih lwip 2.0.3 using socket bsd. The tcp server performs the following operation: s = socket() bind accept //wait a new connection read //packet received I need to perform some check on the pcb data of my socket. I note the get_socket is defined as static and