Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: send() not actually sending

$
0
0

tusagaSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 
connect(tusagaSocket, &tusagaSocketAddr, sizeof(sockaddr));
__delay_cycles(100000);

if (tusagaSocket == -1)
{
wlan_stop();
while (1) {
turnLedOn(LED4);
__delay_cycles(100000);
turnLedOff(LED4);
__delay_cycles(100000);

}
} else
{
turnLedOn(LED4);
if (bind(tusagaSocket, &tusagaSocketAddr, sizeof(sockaddr))) {

}


gidenTamam = send(tusagaSocket, giden, 152, 0);

}

Here is my code works well. bind() func is over there because there are recv() func below my code.

Check the delay func after connect(). Make it 100000.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>