mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
Update some comments.
This commit is contained in:
@@ -1002,11 +1002,19 @@ Configurations
|
|||||||
|
|
||||||
tcpblaster:
|
tcpblaster:
|
||||||
|
|
||||||
The tcpblaster example derives from the nettest example and basicallyi
|
The tcpblaster example derives from the nettest example and basically
|
||||||
duplicates that application when the nettest PERFORMANCE option is selected.
|
duplicates that application when the nettest PERFORMANCE option is selected.
|
||||||
tcpblaster has a little better reporting of performance stats, however.
|
tcpblaster has a little better reporting of performance stats, however.
|
||||||
|
|
||||||
This configuration derives directly from the netnsh configuration and most
|
This configuration derives directly from the netnsh configuration and most
|
||||||
of the notes there should applie equally here.
|
of the notes there should apply equally here.
|
||||||
|
|
||||||
|
General usage instructions:
|
||||||
|
|
||||||
|
1. On the host:
|
||||||
|
a. cd to apps/examples/tcpblaster
|
||||||
|
b. Run the host tcpserver[.exe] program that was built in that directory
|
||||||
|
2. On the target:
|
||||||
|
a. Run the tcpclient built in application.
|
||||||
|
3. When you get tire of watch the numbers scroll by, just kill the tcpserver
|
||||||
|
on the host.
|
||||||
|
|||||||
@@ -341,6 +341,11 @@ void net_unlock(void);
|
|||||||
* Atomically wait for sem (or a timeout( while temporarily releasing
|
* Atomically wait for sem (or a timeout( while temporarily releasing
|
||||||
* the lock on the network.
|
* the lock on the network.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* sem - A reference to the semaphore to be taken.
|
* sem - A reference to the semaphore to be taken.
|
||||||
* abstime - The absolute time to wait until a timeout is declared.
|
* abstime - The absolute time to wait until a timeout is declared.
|
||||||
@@ -360,6 +365,11 @@ int net_timedwait(sem_t *sem, FAR const struct timespec *abstime);
|
|||||||
* Description:
|
* Description:
|
||||||
* Atomically wait for sem while temporarily releasing the network lock.
|
* Atomically wait for sem while temporarily releasing the network lock.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* sem - A reference to the semaphore to be taken.
|
* sem - A reference to the semaphore to be taken.
|
||||||
*
|
*
|
||||||
@@ -378,6 +388,11 @@ int net_lockedwait(sem_t *sem);
|
|||||||
* Allocate an IOB. If no IOBs are available, then atomically wait for
|
* Allocate an IOB. If no IOBs are available, then atomically wait for
|
||||||
* for the IOB while temporarily releasing the lock on the network.
|
* for the IOB while temporarily releasing the lock on the network.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* throttled - An indication of the IOB allocation is "throttled"
|
* throttled - An indication of the IOB allocation is "throttled"
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -270,6 +270,11 @@ void net_restorelock(unsigned int count)
|
|||||||
* Atomically wait for sem (or a timeout( while temporarily releasing
|
* Atomically wait for sem (or a timeout( while temporarily releasing
|
||||||
* the lock on the network.
|
* the lock on the network.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* sem - A reference to the semaphore to be taken.
|
* sem - A reference to the semaphore to be taken.
|
||||||
* abstime - The absolute time to wait until a timeout is declared.
|
* abstime - The absolute time to wait until a timeout is declared.
|
||||||
@@ -329,6 +334,11 @@ int net_timedwait(sem_t *sem, FAR const struct timespec *abstime)
|
|||||||
* Description:
|
* Description:
|
||||||
* Atomically wait for sem while temporarily releasing the network lock.
|
* Atomically wait for sem while temporarily releasing the network lock.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* sem - A reference to the semaphore to be taken.
|
* sem - A reference to the semaphore to be taken.
|
||||||
*
|
*
|
||||||
@@ -350,6 +360,11 @@ int net_lockedwait(sem_t *sem)
|
|||||||
* Allocate an IOB. If no IOBs are available, then atomically wait for
|
* Allocate an IOB. If no IOBs are available, then atomically wait for
|
||||||
* for the IOB while temporarily releasing the lock on the network.
|
* for the IOB while temporarily releasing the lock on the network.
|
||||||
*
|
*
|
||||||
|
* Caution should be utilized. Because the network lock is relinquished
|
||||||
|
* during the wait, there could changes in the network state that occur
|
||||||
|
* before the lock is recovered. Your design should account for this
|
||||||
|
* possibility.
|
||||||
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* throttled - An indication of the IOB allocation is "throttled"
|
* throttled - An indication of the IOB allocation is "throttled"
|
||||||
*
|
*
|
||||||
|
|||||||
+1
-1
@@ -288,7 +288,7 @@ uint16_t ipv4_upperlayer_chksum(FAR struct net_driver_s *dev, uint8_t proto);
|
|||||||
* Name: ipv6_upperlayer_chksum
|
* Name: ipv6_upperlayer_chksum
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Perform the checksum calcaultion over the IPv6, protocol headers, and
|
* Perform the checksum calculation over the IPv6, protocol headers, and
|
||||||
* data payload as necessary.
|
* data payload as necessary.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user