Packet Design


Posted on 16th Feb 2014 07:03 pm by admin

Hi All,
Im new about network programming and I want to design a protocol but I have some questions about packet desing. For example I wanna do a sturct to send informations like that ;

struct info {
char type[2];
char ipno[14];
char checking[14];
}tt;

The question is, I should use "char" type for such informations or I should convert them to hex numbers to build packets?

thanks

No comments posted yet

Your Answer:

Login to answer
320 Like 12 Dislike
Previous forums Next forums
Other forums

Keep newlines from textarea?..
I'm creating a simple encoding program, and what I want it to do is retain the newlines, as echoing

Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first s

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

phpMailer not working ..........
HI,
I was playing with the phpMailer script and tried to send a smiple mail using their test scri

Grids not displaying decimals, and behaving differently on different PCs?
Hello,

I coded a relatively simple MII application that allows data from a form to be add

Paypal
Hi all,

I have an advanced basic knowledge of php

I want to try something new for a s

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

Why does my crawler script suddenly end with no error?
Hi.

I have written a web crawler script. It will visit a large number of URL's with cURL.

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash