Link to home
Start Free TrialLog in
Avatar of alexpet
alexpet

asked on

IRC's DCC Protocol, Help....

I understand I need use sockets to implement IRC's DCC protocol to my program. Here is the part I dont understand.

Here is a quick explanation on how DCC Works:

Data is sent in packets, rather than dumped in a stream manner. The recipient should acknowledge each packet by transmitting the total number of bytes received as an unsigned, 4 byte integer in network byte order.

My Question: How do I send the number of bytes I have received as an unsigned, 4 byte integer?

An Answer would be greately appreciated.
Avatar of extreme
extreme

Your problem is to know how many bytes do you received, or how to pack this un a 4 butes unsigned integer?
Avatar of alexpet

ASKER

my questions is basically how to send the number of bytes recevied as a 4 byte unsigned integer?
What software to manage TCP/IP are you using?. Something like DWinsock? or you are handling TCP "at Hand"?
ASKER CERTIFIED SOLUTION
Avatar of julio011597
julio011597

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial