send messages from 1 Byte to 32 KByte
This commit is contained in:
parent
816b3438af
commit
417520b659
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ typedef struct
|
|||
#define DEFAULTPORT 0x494F /* "IO" */
|
||||
#define TMAXSIZE 65536
|
||||
|
||||
static int tSizes[] = {1024, 2048, 4096, 8192, 16384, 32767};
|
||||
static int tSizes[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32767};
|
||||
static size_t ntSizes = sizeof(tSizes) / sizeof(int);
|
||||
static int nPort = DEFAULTPORT;
|
||||
static const int sobufsize = 131072;
|
||||
|
@ -440,10 +440,10 @@ int netio_init(void)
|
|||
|
||||
addr_local.s_addr = INADDR_ANY;
|
||||
//addr_server.s_addr = inet_addr("192.168.28.254");
|
||||
addr_server.s_addr = inet_addr("192.168.0.2");
|
||||
addr_server.s_addr = inet_addr("192.168.0.3");
|
||||
|
||||
#ifdef CONFIG_ROCKCREEK
|
||||
if (RCCE_ue() == 1) {
|
||||
if (RCCE_ue() == 2) {
|
||||
err = create_kernel_task(NULL, TCPServer, NULL, NORMAL_PRIO);
|
||||
} else if (RCCE_ue() == 0) {
|
||||
sleep(3);
|
||||
|
|
Loading…
Add table
Reference in a new issue