|
Post by DJLinux on Mar 2, 2008 9:49:51 GMT -5
Hello Tom, in curent socket plugin i have registered a type type ADDR_IN word in_family word in_port int in_addr byte reserved[8] end type now in Accept(...) you can use it with pointers dim hClient as integer hClient=Accept(hServer,NULL,NULL) inside the Plugin i can read the both NULL ok so far or i use Accept with BasicGL virtual pointers dim hClient as integer dim ClientAddr as ADDR_IN dim AddrSize as integer AddrSize=ADDR_IN_SIZE ' registered const hClient=Accept(hServer,&ClientAddr,&AddrSize) now inside the plugin if &ClientAddr<>NULL and &AddrSize<>NULL how can i move data to &ClientAddr and &AddrSize ? (these are only virtual addresses not real memory addreses) can you post the C code pleaseThanx Joshy
|
|
|
Post by DJLinux on Mar 2, 2008 10:38:44 GMT -5
ok solved i use now 2 versions one without the struct and size param and one with struct and size param as reference
hClient=Accept(hServer) hClient=Accept(hServer,ClientAddr,AddrSize)
By the way len() won't return the size of registered struct's is it normal?
len(ClientAddr) should return 16
Joshy
|
|
|
Post by DJLinux on Mar 23, 2008 12:26:18 GMT -5
By the way len() won't return the size of registered struct's is it normal? len(ClientAddr) should return 16
|
|