Search Results

Search: Posts Made By: Peevish
3,453
Posted By Peevish
what I'm sure of is that I can receive multiple...
what I'm sure of is that I can receive multiple connections on the same port as long as the peer's IP and port no are different per connection, not sure for using the same port for read and receive,...
3,453
Posted By Peevish
Socket programming
in c socket programming, how can I send and received on the same port?
Forum: Programming 02-22-2010
5,844
Posted By Peevish
so from my previous structure, can I pass...
so from my previous structure, can I pass (message.header.cksum)? which form?
Forum: Programming 02-21-2010
5,844
Posted By Peevish
thanks, that solved the problem of uint16, but...
thanks, that solved the problem of uint16, but I'm still not sure how to pass my structure to CRC

e.g.

typedef struct header
{

unsigned short s;
unsigned short d;
...
Forum: Programming 02-20-2010
5,844
Posted By Peevish
parse error before "crc16_tab"
parse error before "crc16_tab"
Forum: Programming 02-19-2010
5,844
Posted By Peevish
static const cyg_uint16 crc16_tab[] = { ...
static const cyg_uint16 crc16_tab[] = {

shall I change cyg_unit16 to unsigned short int too?
Forum: Programming 02-19-2010
5,844
Posted By Peevish
and I do the same changes to "static const...
and I do the same changes to "static const uint16_t crc16_tab[] =" ?
Forum: Programming 02-19-2010
5,844
Posted By Peevish
Thanks for the link, I've found this in that link...
Thanks for the link, I've found this in that link (Developers can add #include <stdint.h> to their source code to use the <stdint.h> standard, which they can do even if their compiler is not C99...
Forum: Programming 02-19-2010
5,844
Posted By Peevish
#include <stdint.h> is not identified and so ...
#include <stdint.h> is not identified and so
static const uint16_t crc16_tab[]
any hint on that?
Forum: Programming 02-18-2010
5,844
Posted By Peevish
I'm trying to implement the CRC code on that link...
I'm trying to implement the CRC code on that link but I'm not sure how to pass a structure of strings (fields) that I'm using to checksum. Any idea?
Forum: Programming 02-17-2010
5,844
Posted By Peevish
I gave up on editing this code for C, for now,...
I gave up on editing this code for C, for now, instead I'll use the other code (polynomial 0x1021).
I should contact the blogger who has posted that code to explain what <<>> is doing. Thank you...
Forum: Programming 02-16-2010
5,844
Posted By Peevish
thanks, but is the code in this link CRC16...
thanks, but is the code in this link CRC16 (http://www.8052.com/users/bigblack/sub_crc16_table.phtml) of the polynomial 0x8005? I couldn't find any note confirming that, can you tell from the code?
Forum: Programming 02-16-2010
5,844
Posted By Peevish
C++ to C
How can I change the following code to be in C?

maczor's blog: C# CRC16-IBM / CRC16CCITT (XMODEM) Implementation (http://maczor.blogspot.com/2008/02/c-crc16-ibm-crc16ccitt-xmodem.html)
Forum: Programming 01-22-2010
4,001
Posted By Peevish
Binary conversion function
Is/are there any function(s) in C that convert(s) character/ASCII/Decimal to binary and vice versa?
what about bcopy and strcpy?
5
UDP
2,485
Posted By Peevish
the problem is to send a meesage from machine1 to...
the problem is to send a meesage from machine1 to machine2 using UDP,
for TCP the command in unix is

SOCK -t -e Machine1:12345

so what are the command and the options for UDP?
5
UDP
2,485
Posted By Peevish
yeah u're right I mean what command in unix shall...
yeah u're right I mean what command in unix shall I use and what options can set a UDP socket
5
UDP
2,485
Posted By Peevish
UDP
What's the command/options for UDP SOCK (Socket)?
Forum: Programming 01-14-2010
2,686
Posted By Peevish
thanks, but what's the difference between this...
thanks, but what's the difference between this code and using argc and argv arguments in main? is argc for numbers and argv for characters? will it do the work?
Forum: Programming 01-14-2010
2,686
Posted By Peevish
I'm new in C, so could you please elaborate.
I'm new in C, so could you please elaborate.
Forum: Programming 01-14-2010
2,686
Posted By Peevish
Read and Store
How can I read from the user input and store each word individually

for example

word1 word2 number1 number2 word 3 number3

server 192.25.1.1 55555 22 logged 15

I need to store and...
Forum: Programming 01-13-2010
4
3,947
Posted By Peevish
now it's very clear and 100% answers my question,...
now it's very clear and 100% answers my question, thanks.
Forum: Programming 01-12-2010
4
3,947
Posted By Peevish
you've answered 50% of it, if a parent is forked,...
you've answered 50% of it, if a parent is forked, then fork is called again, will both the parent and the child be forked or only the child, in other words will both of them be forking in parallel?
...
Forum: Programming 01-12-2010
4
3,947
Posted By Peevish
Fork()
does fork() spawn only the parent process, what if fork() is looped, does it spawn the parent and the child?
Forum: Solaris 01-11-2010
3,611
Posted By Peevish
any help with this?
any help with this?
Forum: Solaris 01-08-2010
3,611
Posted By Peevish
here u go SunOS omicron 5.8 Generic_117350-61...
here u go SunOS omicron 5.8 Generic_117350-61 sun4u sparc SUNW,Sun-Fire-480R
Showing results 1 to 25 of 27

 
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy