GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Mar-2008, 14:43
boschow boschow is offline
Junior Member
 
Join Date: Feb 2007
Location: Slovenia
Posts: 47
boschow can only hope to improve

TCP IP socket programming


Hello all,

I am tring to implement TCP IP communication on the microcontroller, or should i say TCP IP is already implemented i am only about to use its functions. And I am tring to send some data from the microcontroller to the PC. The PC starts the connection so he is a client and the controller is the server.

The function i am using are the following:
CPP / C++ / C Code:
CSS_SocketListen(UINT16 socket); // the function return the socket that is listening to
CSS_SocketRcv(UINT16 socket, UINT8 *data, UINT16 length, UINT8 time_in_ms); // returns socket ID
CSS_SocketSend(UINT16 socketHandle, UINT8 *data, UINT16 length); // return 0 if the send is sucessful, else return negative value
CSS_SocketClose(int socket); //closes the selected socket

The use of the function is identical to the descritpion. I am observing the TCP IP communication with ethereal. The syn and ack functions are occuring between the PC and the remote device, but why dosent the PC recieve some data that I have sent with the useing of the function CSS_SendSocket.

With the TCP IP communication I have to send also its header? If so how long is the header that I have to resend through the connection ? Is there anithing else I should be aware of ?

Thanks and
Best Regards,
BoSCHoW.
Last edited by admin : 05-Mar-2008 at 01:27. Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[PROGRAM] Winsock Programming Max Payne MS Visual C++ / MFC Forum 1 08-Mar-2007 23:38
Audio chat in Socket programming Mushahid Abbas C++ Forum 3 10-Oct-2006 16:14
Where to go for Registry editing and socket programming ? realnapster C++ Forum 2 08-Feb-2006 08:54
write a function in socket programming dxgn C++ Forum 0 07-Jan-2005 08:48

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.