Search:

Type: Posts; User: valthyx

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    3,622

    Windows 7 is backward compatible :)

    Windows 7 is backward compatible :)
  2. Replies
    18
    Views
    3,622

    Probably your sizeof(int) is 2 bytes. What is...

    Probably your sizeof(int) is 2 bytes. What is your platform?
  3. Replies
    4
    Views
    4,614

    Beej's guide is not only for beginners. It is for...

    Beej's guide is not only for beginners. It is for beginners and intermediate network programmers.
    Windows socket and linux sockets are similar if you are using BSD sockets. A little bit of extra...
  4. It's a standard set by ANSI C. Anything not 0 is...

    It's a standard set by ANSI C. Anything not 0 is true. This world is full of standards and conventions which sometimes make sense, sometimes don't.
  5. Replies
    12
    Views
    1,036

    From what i understood from the above post, this...

    From what i understood from the above post, this will return the size of one of the element in the struct, which is not the whole struct.
  6. Replies
    12
    Views
    1,036

    Is there any way to know the real size of a...

    Is there any way to know the real size of a struct?
  7. Replies
    61
    Views
    4,038

    char get_item(int choice) { char item[30]; ...

    char get_item(int choice)
    {
    char item[30];

    switch (choice)
    {
    case 1: strcpy(item, " Pioneer MP3 Player");
    break;
    case 2: strcpy(item, " MOMO Sports...
  8. A very good guide Beej's Guide to Network...

    A very good guide Beej's Guide to Network Programming
  9. Replies
    14
    Views
    2,677

    if you want to include .c file in main(), use...

    if you want to include .c file in main(), use this


    # include "mod1.c"
    # include "mod2.c"

    Make sure all three files are in the same directory. Else, you will have to specify the full path for...
  10. void PrintVals(void (*)(int&, int&),int&, int&);...

    void PrintVals(void (*)(int&, int&),int&, int&);
    void foo(int& x, int& y) {
    x++;
    y++;
    }
    .
    .
    .

    PrintVals(foo(2,3), 4, 5); //or PrintVals(*foo(2,3), 4, 5);
  11. Replies
    21
    Views
    2,380

    Thanks for all the help and "cheers". :) I am...

    Thanks for all the help and "cheers". :) I am working on asymmetric encryption.
  12. Replies
    14
    Views
    6,797

    That is one way. However, programmers normally...

    That is one way. However, programmers normally use the "struct" defined in the header files for extracting the data. You could first strip the ethernet header, then ip header, then transport layer. I...
  13. Replies
    21
    Views
    2,380

    Thank you. I am kinda forget mathematics from...

    Thank you. I am kinda forget mathematics from school. Used to calculators.
  14. Replies
    14
    Views
    6,797

    The socket library will automatically do this for...

    The socket library will automatically do this for you. You do no have to strip. But from what you are saying, it seems that you are using raw sockets. Check this out...
  15. Replies
    21
    Views
    2,380

    Could anyone please give me an example, just a...

    Could anyone please give me an example, just a simple, for me to get an idea of. Thank you.
  16. Replies
    21
    Views
    2,380

    It is quite difficult to multiply. For example, I...

    It is quite difficult to multiply. For example, I have "1234" and "9694". I would start with
    1. 4*4 = 8 (this is fine)
    2. 9*3 = 27 (i have to bring the 2 to the next multiplication)
    3. 3*6+2 =...
  17. Replies
    9
    Views
    954

    setsockopt(), getsockopt()...

    setsockopt(), getsockopt()
    This could solve. See the "SO_REUSEADDR" option.
  18. Replies
    21
    Views
    2,380

    What about this, will it work? struct newint...

    What about this, will it work?


    struct newint
    {
    char m[2000];
    };

    struct newint myNewint1, myNewint2;
    myNewint1.m = "12345";
  19. Replies
    21
    Views
    2,380

    What about this, will it work? struct newint...

    What about this, will it work?


    struct newint
    {
    char m[2000];
    };

    struct newint myNewint1, myNewint2;
    myNewint1.m = "12345";
  20. Replies
    21
    Views
    2,380

    Is it possible to store the number as strings and...

    Is it possible to store the number as strings and compute them bytes by bytes?

    Or, create a newly defined typed which stores a very large int. let's say 1024 buts instead or 32 bits. Is this...
  21. Replies
    21
    Views
    2,380

    Storing a very long number

    I have a very long number, lets say

    An int or a long unsigned int would definitely not be able to store this number. I would like to do some mathematical computation using large numbers,...
  22. Replies
    2
    Views
    743

    Pointer or array

    I have a program which receives an input from the user. Should I use an array or a pointer for storing the string.


    int main()
    {
    char *prt; //this
    //ptr[100]; //or this?
    printf("Please enter...
  23. Thread: C/C++ IDEs

    by valthyx
    Replies
    6
    Views
    1,620

    So, what most people would use when creating a...

    So, what most people would use when creating a GUI applications (Windows and Linux) ?
  24. Thread: Socket Problem

    by valthyx
    Replies
    4
    Views
    866

    Thanks alot Mike, I didn't know it is so simple....

    Thanks alot Mike, I didn't know it is so simple. Does this work for converting "char*" to "system string"? And is there any similar way of converting "system string" to "char*" string?

    By the way,...
  25. Thread: Socket Problem

    by valthyx
    Replies
    4
    Views
    866

    Thank you. I have run the code and i get this...

    Thank you.
    I have run the code and i get this error.

    I am running on windows 7 with admin privileged. I also tried to run the ".exe" with "run as Administrator" but still getting the same...
Results 1 to 25 of 138
Page 1 of 6 1 2 3 4