Search:

Type: Posts; User: chrisjmoss

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    8,440

    Todd thanks for the help thus far, I was being a...

    Todd thanks for the help thus far, I was being a bit of a div and got confused with array size and indexing, but I have sorted that out now.



    char servicetype[2];// = 0x0205; //service type in...
  2. Replies
    6
    Views
    8,440

    char IPcontrol[3]; //four chars for conrtol...

    char IPcontrol[3]; //four chars for conrtol endpoint IP
    char IPdata[3]; //fours chars for data endpoint IP use same IP as control endpoint
    char portdata[1]; //set data port to 3671...
  3. Replies
    6
    Views
    8,440

    Casting a struct for sending to socket

    Hi Guys

    I am trying to send a struct to a UDP socket, but I'm not entirely sure how to cast the structure.



    struct CONNECT_REQUEST {
    char headersize ;// = 0x06; //static EIB header size...
  4. Replies
    1
    Views
    5,219

    Sending Hex to sockets?

    Hi guys i'm writing a UDP client based on the example given in TCP/IP sockets in C book, but I would like to know how to send a hex string to the socket.

    Currently when I write a hex string it is...
  5. Replies
    2
    Views
    1,644

    Reading file line by line

    Hi guys i'm kind of new to C and am trying to read a text file that has a number stored on each line like below.

    17767

    9158

    39017

    18547
  6. Replies
    1
    Views
    5,790

    Alternative to switch/case?

    Hi I'm new to C and was wondering whether there is a better way to solve my problem than a switch( ) case statment.

    I'm trying to decode a byte of data from an ICMP packet, because it's a byte,...
Results 1 to 6 of 6