B********s 发帖数: 3610 | 1 I have a socket connection between a client and a server. Now I want to send
a structure containning a pointer pointed to an int array(which indeed is
what i want to send).How am I supposed to do this? Thanks. |
s****u 发帖数: 118 | 2 其实你send一个pointer有什么用呢?
pointer就是一个整数,直接send就好了
但是你这个pointer到了另一个电脑上基本就是非法的哦
send
【在 B********s 的大作中提到】 : I have a socket connection between a client and a server. Now I want to send : a structure containning a pointer pointed to an int array(which indeed is : what i want to send).How am I supposed to do this? Thanks.
|
B********s 发帖数: 3610 | 3 Yes, that is the problem. In other words, how can I send the structure
including the int array it point to?
【在 s****u 的大作中提到】 : 其实你send一个pointer有什么用呢? : pointer就是一个整数,直接send就好了 : 但是你这个pointer到了另一个电脑上基本就是非法的哦 : : send
|
s****u 发帖数: 118 | 4 只能整个数组传过去吧
【在 B********s 的大作中提到】 : Yes, that is the problem. In other words, how can I send the structure : including the int array it point to?
|